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