| Constructor and Description |
|---|
ByteIndexArray(int[] ia)
Constructs a new
ByteIndexArray instance. |
ByteIndexArray(int[] ia,
int start,
int end)
Constructs a new
ByteIndexArray instance from the
specified subarray. |
| Modifier and Type | Method and Description |
|---|---|
int |
get(int index)
Returns the specified array element.
|
int |
size()
Returns the number of elements.
|
java.lang.String |
toString()
Returns a string representation of this
IntArray by applying
java.utils.Arrays.toString() to an equivalent int[]
object. |
public ByteIndexArray(int[] ia)
ByteIndexArray instance.ia - an array of integersjava.lang.IllegalArgumentException - if
ia[j] < 0 || ia[j] > 127 for any index j
satisfying j >= 0 && j < ia.lengthjava.lang.NullPointerException - if ia == nullpublic ByteIndexArray(int[] ia,
int start,
int end)
ByteIndexArray instance from the
specified subarray.ia - an array of integersstart - the first element to be included (inclusive)end - the last element to be included (exclusive)java.lang.IllegalArgumentException - if
ia[j] < 0 || ia[j] > 127 for any index j
satisfying j >= start && j < endjava.lang.IndexOutOfBoundsException - if start < 0 or end > ia.lengthjava.lang.IllegalArgumentException - if end > startjava.lang.NullPointerException - if ia == nullpublic int size()
IntArraypublic int get(int index)
IntArraypublic java.lang.String toString()
IntArrayIntArray by applying
java.utils.Arrays.toString() to an equivalent int[]
object.