| Constructor | Description |
|---|---|
WrappedIntArray(int[] ia) |
Constructs a new
WrappedIntArray instance. |
WrappedIntArray(int[] ia,
int valueSize) |
Constructs a new
WrappedIntArray instance. |
WrappedIntArray(IntList il) |
Constructs a new
WrappedIntArray instance. |
WrappedIntArray(IntList il,
int valueSize) |
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() |
public WrappedIntArray(int[] ia)
WrappedIntArray instance.ia - an array of integersjava.lang.NullPointerException - if ia == nullpublic WrappedIntArray(int[] ia,
int valueSize)
WrappedIntArray instance.ia - an array of integersvalueSize - the exclusive end of the range of non-negative
array valuesjava.lang.IllegalArgumentException - if
(ia[j] < 0 || ia[j] > valueSize) for any index j
satisfying (j >= 0 && j < ia.length)java.lang.NullPointerException - if ia == nullpublic WrappedIntArray(IntList il)
WrappedIntArray instance.il - a list of integersjava.lang.NullPointerException - if il == nullpublic WrappedIntArray(IntList il, int valueSize)
WrappedIntArray instance.il - a list of integersvalueSize - the exclusive end of the range of non-negative
array valuesjava.lang.IllegalArgumentException - if
(il[j] < 0 || il[j] > valueSize) for any index j
satisfying (j >= 0 && j < il.length)java.lang.NullPointerException - if il == nullpublic int size()
IntArrayIntArray.public int get(int index)
IntArraypublic java.lang.String toString()
toString in class java.lang.Object