Method Summary |
|
boolean | add(boolean v) Adds an element to this collection.
Parameters: v - the element to add to this collection. |
boolean | addAll(BooleanCollection 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(boolean v) Indicates whether this collection contains a specified
element.
Parameters: v - the element to test for containment. |
boolean | containsAll(BooleanCollection 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. |
BooleanIterator | iterator() Returns an iterator over this collection. |
boolean | remove(boolean v) Removes a specified element from this collection.
Parameters: v - the boolean value to remove from this collection. |
boolean | removeAll(BooleanCollection c) Removes all the elements of a specified collection from
this collection.
Parameters: c - the collection whose elements to remove from thiscollection. |
boolean | retainAll(BooleanCollection 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. |
boolean[] | toArray() Returns the elements of this collection as an array. |
boolean[] | toArray(boolean[] 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. |