org.jrdf.graph.mem
Class CollectionImpl
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<ObjectNode>
org.jrdf.graph.mem.CollectionImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<ObjectNode>, Collection<ObjectNode>, List<ObjectNode>, Queue<ObjectNode>
public final class CollectionImpl
- extends LinkedList<ObjectNode>
- implements Collection<ObjectNode>
A Collection all the statements of a particular group.
- Version:
- $Revision: 1045 $
- Author:
- Andrew Newman
- See Also:
- Serialized Form
| Methods inherited from class java.util.LinkedList |
add, add, clear, clone, element, get, getFirst, getLast, listIterator, offer, peek, poll, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
| Methods inherited from interface java.util.List |
clear, equals, get, hashCode, isEmpty, listIterator, listIterator, remove, size, subList, toArray, toArray |
CollectionImpl
public CollectionImpl()
addAll
public boolean addAll(Collection<? extends ObjectNode> c)
throws IllegalArgumentException
- Specified by:
addAll in interface Collection<ObjectNode>- Specified by:
addAll in interface List<ObjectNode>- Overrides:
addAll in class LinkedList<ObjectNode>
- Throws:
IllegalArgumentException
addAll
public boolean addAll(int index,
Collection<? extends ObjectNode> c)
throws IllegalArgumentException
- Specified by:
addAll in interface List<ObjectNode>- Overrides:
addAll in class LinkedList<ObjectNode>
- Throws:
IllegalArgumentException
addFirst
public void addFirst(ObjectNode o)
- Overrides:
addFirst in class LinkedList<ObjectNode>
addLast
public void addLast(ObjectNode o)
- Overrides:
addLast in class LinkedList<ObjectNode>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<ObjectNode>- Specified by:
contains in interface List<ObjectNode>- Overrides:
contains in class LinkedList<ObjectNode>
indexOf
public int indexOf(Object o)
throws IllegalArgumentException
- Specified by:
indexOf in interface List<ObjectNode>- Overrides:
indexOf in class LinkedList<ObjectNode>
- Throws:
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
lastIndexOf
public int lastIndexOf(Object o)
throws IllegalArgumentException
- Specified by:
lastIndexOf in interface List<ObjectNode>- Overrides:
lastIndexOf in class LinkedList<ObjectNode>
- Throws:
IllegalArgumentException - if the given object is not the correct
type, ObjectNode.
remove
public boolean remove(Object o)
throws IllegalArgumentException
- Specified by:
remove in interface Collection<ObjectNode>- Specified by:
remove in interface List<ObjectNode>- Overrides:
remove in class LinkedList<ObjectNode>
- Throws:
IllegalArgumentException - if the given object is not the correct
type.
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<ObjectNode>- Specified by:
containsAll in interface List<ObjectNode>- Overrides:
containsAll in class AbstractCollection<ObjectNode>
- Throws:
IllegalArgumentException - if the given object is not the correct
type, Collection.
removeAll
public boolean removeAll(Collection<?> c)
throws IllegalArgumentException
- Specified by:
removeAll in interface Collection<ObjectNode>- Specified by:
removeAll in interface List<ObjectNode>- Overrides:
removeAll in class AbstractCollection<ObjectNode>
- Throws:
IllegalArgumentException - if the given object is not the correct
type, Collection.
retainAll
public boolean retainAll(Collection<?> c)
throws IllegalArgumentException
- Specified by:
retainAll in interface Collection<ObjectNode>- Specified by:
retainAll in interface List<ObjectNode>- Overrides:
retainAll in class AbstractCollection<ObjectNode>
- Throws:
IllegalArgumentException - if the given object is not the correct
type, Collection.