Method Summary |
|
public boolean | add(Object value) Appends the specified value to the end of this collection
(optional operation).
Note: This default implementation always throws
UnsupportedOperationException .
Parameters: value - the value to be appended to this collection. |
public boolean | addAll(Collection c) Appends all of the values in the specified collection to the end of
this collection, in the order that they are returned by the specified
collection's iterator or the node order if the specified collection
is a
FastCollection .
Parameters: c - collection whose values are to be added to this collection. |
public void | clear() Removes all of the values from this collection (optional operation). |
public boolean | contains(Object value) Indicates if this collection contains the specified value.
Parameters: value - the value whose presence in this collection is to be tested. |
public boolean | containsAll(Collection c) Indicates if this collection contains all of the values of the
specified collection.
Parameters: c - collection to be checked for containment in this collection. |
abstract public void | delete(Record record) Deletes the specified record from this collection.
Implementation must ensure that removing a record from the
collection does not affect in any way the records preceding
the record being removed (it might affect the next records though,
e.g. |
public boolean | equals(Object obj) Compares the specified object with this collection for equality. |
public FastComparator | getValueComparator() Returns the value comparator for this collection (default
FastComparator.DEFAULT ). |
public int | hashCode() Returns the hash code for this collection (independent from the
collection order; unless this collection is a list instance). |
abstract public Record | head() Returns the head record of this collection; it is the record such as
head().getNext() holds the first collection value. |
final public boolean | isEmpty() Indicates if this collection is empty. |
public Iterator | iterator() Returns an iterator over the elements in this collection
(allocated on the stack when executed in a
javolution.context.StackContext StackContext ). |
public boolean | remove(Object value) Removes the first occurrence in this collection of the specified value
(optional operation).
Parameters: value - the value to be removed from this collection. |
public boolean | removeAll(Collection c) Removes from this collection all the values that are contained in the
specified collection.
Parameters: c - collection that defines which values will be removed fromthis collection. |
public boolean | retainAll(Collection c) Retains only the values in this collection that are contained in the
specified collection.
Parameters: c - collection that defines which values this set will retain. |
abstract public int | size() Returns the number of values in this collection. |
abstract public Record | tail() Returns the tail record of this collection; it is the record such as
tail().getPrevious() holds the last collection value. |
public Object[] | toArray() Returns a new array allocated on the heap containing all of the values
in this collection in proper sequence. |
public Object/*{ T}*/[] | toArray(Object/*{T}*/[] array) Fills the specified array with the values of this collection in
the proper sequence.
Note: Unlike standard Collection, this method does not try to resize
the array using reflection (which might not be supported) if
the array is too small. |
final public String | toString() Returns the String representation of this
FastCollection . |
public Text | toText() Returns the textual representation of this collection. |
public Collection | unmodifiable() Returns the unmodifiable view associated to this collection. |
abstract public Object | valueOf(Record record) Returns the collection value for the specified record.
Parameters: record - the record whose current value is returned. |