org.jrdf.graph.mem
Class CollectionImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<ObjectNode>
                  extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CollectionImpl()
           
 
Method Summary
 boolean addAll(Collection<? extends ObjectNode> c)
           
 boolean addAll(int index, Collection<? extends ObjectNode> c)
           
 void addFirst(ObjectNode o)
           
 void addLast(ObjectNode o)
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 
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 class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jrdf.graph.Collection
add, add, iterator, set
 
Methods inherited from interface java.util.List
clear, equals, get, hashCode, isEmpty, listIterator, listIterator, remove, size, subList, toArray, toArray
 
Methods inherited from interface java.util.Queue
element, offer, peek, poll, remove
 

Constructor Detail

CollectionImpl

public CollectionImpl()
Method Detail

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.