Method Summary |
|
boolean | add(char v) Adds an element to this collection.
Parameters: v - the element to add to this collection. |
boolean | addAll(CharCollection c) Adds all the elements of a specified collection to
this collection.
Parameters: c - the collection whose elements to add to thiscollection. |
void | clear() Clears this collection. |
boolean | contains(char v) Indicates whether this collection contains a specified
element.
Parameters: v - the element to test for containment. |
boolean | containsAll(CharCollection c) Indicates whether all elements of a specified
collection is contained in this collection.
Parameters: c - the collection whose elements to test forcontainment. |
boolean | equals(Object obj) Indicates whether this collection is equal to some object.
Parameters: obj - the object with which to compare this collection. |
int | hashCode() Returns a hash code value for this collection. |
boolean | isEmpty() Indicates whether this collection is empty. |
CharIterator | iterator() Returns an iterator over this collection. |
boolean | remove(char v) Removes a specified element from this collection.
Parameters: v - the char value to remove from this collection. |
boolean | removeAll(CharCollection c) Removes all the elements of a specified collection from
this collection.
Parameters: c - the collection whose elements to remove from thiscollection. |
boolean | retainAll(CharCollection c) Retains only the elements of a specified collection in
this collection.
Parameters: c - the collection whose elements to retain in thiscollection. |
int | size() Returns the number of elements in this collection. |
char[] | toArray() Returns the elements of this collection as an array. |
char[] | toArray(char[] a) Returns the elements of this collection as an array.
Parameters: a - an array to fill with the elements of thiscollection; if a is null or notbig enough to contain all the elements of thiscollection, an new array is allocated,and a is not changed. |
void | trimToSize() Minimizes the memory used by this collection. |