Method Summary |
|
public int | add(int value) Add a value to the list.
Parameters: value - Integer value, which should be added. |
public void | add(IntegerCollection collection) Add a collection of values to this list. |
public void | add(int[] array) Add the values of an array to this list. |
public void | clear() Removes all values from this list. |
public boolean | contains(int value) If the list contains a value.
Parameters: value - Value, which should be found in this list. |
public int | get(int index) Return a value from this list given by an index.
Parameters: index - Index of the value. |
public int | getCount() |
public int | indexOf(int value) Return the index of a value, otherwise -1.
Parameters: value - Value, which should found in this list. |
public boolean | isEmpty() If this list contains no values. |
public int | peek() Peek a value of the end of this list. |
public int | pop() Pops a value of the end of this list. |
public void | push(int value) |
public void | push(int[] values) Push values from an array. |
public void | remove(int index) Removes a value giving by an index. |
public void | removeValue(int value) Removes a value from this list. |
public void | set(int index, int value) Replace a value given by an index. |
public void | swap(int index1, int index2) Swaps two values from this list. |
public String | toString() Return a string representation of the collection. |