org.jrdf.graph.mem
Class SequenceImpl

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.jrdf.graph.mem.SequenceImpl
All Implemented Interfaces:
Cloneable, Collection, Container, List, RandomAccess, Sequence, Serializable

public class SequenceImpl
extends ArrayList
implements Sequence

An implementation of Sequence.

Version:
$Revision: 1.1 $
Author:
Andrew Newman
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SequenceImpl()
           
 
Method Summary
 void add(int index, Object o)
          
 boolean add(Object o)
          
 boolean addAll(Collection c)
          
 boolean addAll(int index, Collection c)
          
 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)
          
 Object set(int index, Object element)
          
 
Methods inherited from class java.util.ArrayList
clear, clone, ensureCapacity, get, isEmpty, remove, removeRange, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
clear, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 
Methods inherited from interface java.util.List
clear, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, size, subList, toArray, toArray
 

Constructor Detail

SequenceImpl

public SequenceImpl()
Method Detail

add

public void add(int index,
                Object o)
         throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
add in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

add

public boolean add(Object o)
            throws IllegalArgumentException
Description copied from interface: Container

Specified by:
add in interface Container
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

addAll

public boolean addAll(Collection c)
               throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
addAll in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, Sequence.

addAll

public boolean addAll(int index,
                      Collection c)
               throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
addAll in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, Sequence.

contains

public boolean contains(Object o)
Description copied from interface: Sequence

Specified by:
contains in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

containsAll

public boolean containsAll(Collection c)
Description copied from interface: Sequence

Specified by:
containsAll in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, Sequence.

indexOf

public int indexOf(Object o)
            throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
indexOf in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

lastIndexOf

public int lastIndexOf(Object o)
                throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
lastIndexOf in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

remove

public boolean remove(Object o)
               throws IllegalArgumentException
Description copied from interface: Container

Specified by:
remove in interface Container
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

removeAll

public boolean removeAll(Collection c)
                  throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
removeAll in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, Sequence.

retainAll

public boolean retainAll(Collection c)
                  throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
retainAll in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, Sequence.

set

public Object set(int index,
                  Object element)
           throws IllegalArgumentException
Description copied from interface: Sequence

Specified by:
set in interface Sequence
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.