Method Summary |
|
public int | add(int value) Add a value to this set.
Parameters: value - Integer value. |
public void | add(IntegerCollection collection) Add the values of an other integer collection to this set. |
public void | add(int[] array) Add the values of an array to this set. |
public void | clear() |
public boolean | contains(int value) If the list contains a value. |
public int | get(int index) Return a value from this set given by an index.
Parameters: index - Index of the value. |
public int | getCount() Returns the count of value in this set. |
public int | indexOf(int value) Return the index of a value, otherwise -1
Parameters: value - Value, which should be found in this set. |
public boolean | isEmpty() If this set contains no values. |
public int | peek() Peek a value of the end of this set. |
public int | pop() Pops a value of the end of this set. |
public void | push(int value) Pushs a value to this list. |
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 set. |
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 set. |
public String | toString() Return a string representation of the collection. |