Method Summary |
|
public boolean | add(Object o) Adds the specified element to the collection. |
public boolean | addAll(Collection col) Adds all of the elements in the specified collection to this collection.
Parameters: col - the elements to be inserted into the collection. |
public void | clear() Removes all of the elements from the internal collection. |
public boolean | contains(Object o) Returns true if this collection contains the specified element. |
public boolean | containsAll(Collection col) Returns true if this collection contains all of the elements in the specified collection. |
public boolean | equals(Object o) Overwrite the equals method of the Collection Interface. |
public int | getType() Gets the RDFContainer type. |
public int | hashCode() Get the hash code for an object. |
public boolean | isAlt() Returns true if the RDFContainer type is ALT.
true if the RDFContainer type is ALT. |
public boolean | isBag() Returns true if the RDFContainer type is BAG.
true if the RDFContainer type is BAG. |
public boolean | isEmpty() Returns true if this collection contains no elements. |
public boolean | isSeq() Returns true if the RDFContainer type is SEQ.
true if the RDFContainer type is SEQ. |
public Iterator | iterator() Returns an iterator over the elements in the internal collection. |
public boolean | remove(Object o) Removes a single instance of the specified element from the collection.
Parameters: o - the element to be removed from this collection, if present. |
public boolean | removeAll(Collection col) Removes all the collection's elements that are also contained in the specified collection. |
public boolean | retainAll(Collection col) Retains only the elements in the collection that are contained in the specified collection. |
public int | size() Returns the number of elements in the internal collection. |
public Object[] | toArray() Returns an array containing all of the elements in the collection.
Not yet supported, would enforge reading the entire collection.
an array containing all of the elements in this collection. |
public Object[] | toArray(Object[] a) Returns an array containing all of the elements in this collection;
the runtime type of the returned array is that of the specified array.
Parameters: a - the array into which the elements of this collection are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose. |