| Constructor | Description |
|---|---|
WrappedIntArray(int[] ia) |
Constructs a new
WrappedIntArray instance. |
WrappedIntArray(IntList il) |
Constructs a new
WrappedIntArray instance. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
get(int index) |
Returns the specified array element.
|
int |
size() |
Returns the number of elements in this
IntArray. |
java.lang.String |
toString() |
Returns a string representation of this
IntArray by applying
java.utils.Arrays.toString() to an equivalent int[]
object. |
public WrappedIntArray(int[] ia)
WrappedIntArray instance.ia - an array of integersjava.lang.NullPointerException - if ia == nullpublic WrappedIntArray(IntList il)
WrappedIntArray instance.il - a list of integersjava.lang.NullPointerException - if il == nullpublic int size()
IntArrayIntArray.public int get(int index)
IntArraypublic java.lang.String toString()
IntArrayIntArray by applying
java.utils.Arrays.toString() to an equivalent int[]
object.