Constructor and Description |
---|
ShiftedByteIndexArray(int[] ia)
Constructs a new
ShiftedByteIndexArray instance. |
ShiftedByteIndexArray(int[] ia,
int start,
int end)
Constructs a new
ShiftedByteIndexArray 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 ShiftedByteIndexArray(int[] ia)
ShiftedByteIndexArray
instance.ia
- an array of integersjava.lang.IllegalArgumentException
- if
ia[j] < 0 || ia[j] > 255
for any index j
satisfying j >= 0 && j < ia.length
java.lang.NullPointerException
- if ia == null
public ShiftedByteIndexArray(int[] ia, int start, int end)
ShiftedByteIndexArray
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] > 255
for any index j
satisfying j >= start && j < end
java.lang.IndexOutOfBoundsException
- if start < 0 or end > ia.length
java.lang.IllegalArgumentException
- if end > start
java.lang.NullPointerException
- if ia == null
public int size()
IntArray
public int get(int index)
IntArray
public java.lang.String toString()
IntArray
IntArray
by applying
java.utils.Arrays.toString()
to an equivalent int[]
object.