Constructor and Description |
---|
WrappedIntArray(int[] ia)
Constructs a new
CharCompressedIntArray instance. |
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 WrappedIntArray(int[] ia)
CharCompressedIntArray
instance.ia
- an array of integersjava.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.