Public Member Functions | |
IntArray () | |
IntArray (int capacity) | |
IntArray (int[] values) | |
void | ensureCapacity (int capacity) |
int | size () |
boolean | isEmpty () |
void | trimToSize () |
void | add (int val) |
void | add (int[] vals) |
void | add (int[] vals, int offset, int length) |
void | insert (int offset, int value) |
void | insert (int offset, int[] values) |
void | insert (int offset, int[] values, int valOffset, int len) |
int | get (int offset) |
void | set (int offset, int val) |
void | set (int offset, int[] values) |
void | set (int offset, int[] values, int valOffset, int length) |
void | clear () |
void | clear (int capacity) |
int | removeAt (int offset) |
int | remove (int value) |
void | removeAt (int offset, int length) |
Object | clone () |
int[] | toArray () |
int[] | toArray (int offset, int len) |
void | toArray (int[] dest, int offset, int len) |
boolean | equals (Object other) |
int | hashCode () |
boolean | contains (int value) |
String | toString () |
Protected Attributes | |
transient int[] | data |
Private Member Functions | |
void | writeObject (ObjectOutputStream stream) throws IOException |
void | readObject (ObjectInputStream stream) throws IOException, ClassNotFoundException |
Private Attributes | |
transient int | pos |
Static Private Attributes | |
final long | serialVersionUID = -8356201427005323616L |
final int | DEFAULT_CAPACITY = 10 |
|
Constrcuts a new |
|
Constrcuts a new
|
|
Constrcuts a new
|
|
Adds a subset of the values in the array
|
|
Adds the values in the array
|
|
Adds
|
|
Flushes the internal state of the list, setting the capacity of the empty list to
|
|
Flushes the internal state of the list, resetting the capacity to the default. |
|
Returns a clone of this list. Since this is a primitive collection, this will be a deep clone.
|
|
Searches the list for
|
|
Grow the internal array as needed to accomodate the specified number of elements. The size of the array doubles on each resize unless
|
|
Compares this list to another list, value by value.
|
|
Returns the value at the specified offset.
|
|
Returns the hash code value for this list.
This implementation uses exactly the code that is used to define the list hash function in the documentation for the
|
|
Inserts a slice of the array of
|
|
Inserts the array of
|
|
Inserts
|
|
Tests whether this list contains any values.
|
|
Reconstitute the |
|
Removes the element with value
|
|
Removes
|
|
Removes the value at
|
|
Replace the values in the list starting at
|
|
Replace the values in the list starting at
|
|
Sets the value at the specified offset.
|
|
Returns the number of values in the list.
|
|
Copies a slice of the list into a native array.
|
|
Copies a slice of the list into a native array.
|
|
Copies the contents of the list into a native array.
|
|
Returns a String representation of the list, front to back.
|
|
Sheds any excess capacity above and beyond the current size of the list. |
|
Save the state of the
The length of the array backing the |
|
Array data. |
|
Default capacity for the array. |
|
Index of the first empty bucket (also size). |
|
Serial version UID. |