public final class ArrayIntBig extends Object implements Serializable
toArray() the data is copied to the result int[].| Constructor and Description |
|---|
ArrayIntBig()
Create an
IntArray. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int element)
Add int to
IntArray. |
void |
addAll(int[] elements)
Add int[] to
IntArray. |
long |
consumption()
Get memory consumption of
IntArray. |
int |
get(int index)
Get int at index from
IntArray. |
boolean |
isEmpty()
Returns true if this list contains no elements.
|
int |
length()
Get length of
IntArray. |
int[] |
toArray()
Convert
IntArray to int[]. |
public ArrayIntBig()
IntArray. Memory consumption is equal to creating
a new ArrayList.public final void add(int element)
IntArray.element - int which should be addedpublic final void addAll(int[] elements)
IntArray.elements - int[] which should be addedpublic final int get(int index)
throws IndexOutOfBoundsException
IntArray.index - index of int which should be returnedIndexOutOfBoundsException - if the index is beyond the end.public final int length()
IntArray.IntArraypublic boolean isEmpty()
public final long consumption()
IntArray.IntArraypublic final int[] toArray()
IntArray to int[]. This operation is the only one
where the internal data is copied. It is directly copied to the int[]
which is returned, so don't call this method more than once when done.IntArray