Method Summary |
|
public void | add(int element) Appends the specified element to the end of this list. |
public void | add(int index, int element) Inserts the specified element at the specified position in this
list. |
public void | addAll(int[] ai) Appends all of the elements in the specified array to the end of this
list. |
public void | addAll(int index, int[] ai) Inserts all of the elements in the specified array into this list,
starting at the specified position. |
public void | clear() Removes all of the elements from this list. |
public Object | clone() Returns a copy of this IntArrayList instance. |
public boolean | contains(int elem) Returns true if this list contains the specified element.
Parameters: elem - element whose presence in this List is to be tested. |
public boolean | containsAll(int[] ai) Returns true if this list contains all of the elements in the
specified list. |
public void | ensureCapacity(int minCapacity) Increases the capacity of this IntArrayList instance, if
necessary, to ensure that it can hold at least the number of elements
specified by the minimum capacity argument. |
public boolean | equals(Object o) Compares the specified object with this list for equality.
Returns true if and only if the specified object is also an
IntArrayList, both lists have the same size, and all corresponding pairs
of elements in the two lists are equal.
Parameters: o - the object to be compared for equality with this list. |
public int | get(int index) Returns the element at the specified position in this list. |
public int | hashCode() Returns the hash code value for this list. |
public int | indexOf(int elem) Searches for the first occurence of the given argument.
Parameters: elem - An integer to search for. |
public boolean | isEmpty() Tests if this list has no elements. |
public int | lastIndexOf(int elem) Returns the index of the last occurrence of the specified integer in
this list.
Parameters: elem - The desired element. |
public int | remove(int index) Removes the element at the specified position in this list. |
public boolean | removeAll(int[] ai) Removes from this list all of its elements that are contained in the
specified array. |
public boolean | retainAll(int[] ai) Retains only the elements in this list that are contained in the
specified array. |
public int | set(int index, int element) Replaces the element at the specified position in this list with
the specified element. |
public int | size() Returns the number of elements in this list. |
public int[] | toArray() Returns an array containing all of the elements in this list. |
public String | toString() Returns a string representation of this list. |
public void | trimToSize() Trims the capacity of this IntArrayList instance to be the
list's current size. |