org.jrdf.graph
Interface Sequence

All Superinterfaces:
Collection, Container, List
All Known Implementing Classes:
SequenceImpl

public interface Sequence
extends Container, List

A Sequence is a group of statements that are kept in an orderd list. The order in which the objects go in dictates how they are returned in a First In, First Out manner.

Version:
$Revision: 1.1 $
Author:
Andrew Newman

Method Summary
 void add(int index, 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 removeAll(Collection c)
          
 boolean retainAll(Collection c)
          
 Object set(int index, Object element)
          
 
Methods inherited from interface org.jrdf.graph.Container
add, remove
 
Methods inherited from interface java.util.Collection
clear, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 
Methods inherited from interface java.util.List
add, clear, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, size, subList, toArray, toArray
 

Method Detail

add

public void add(int index,
                Object o)
         throws IllegalArgumentException

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

addAll

public boolean addAll(Collection c)
               throws IllegalArgumentException

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

addAll

public boolean addAll(int index,
                      Collection c)
               throws IllegalArgumentException

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

contains

public boolean contains(Object o)

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

containsAll

public boolean containsAll(Collection c)

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

indexOf

public int indexOf(Object o)
            throws IllegalArgumentException

Specified by:
indexOf in interface List
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
Throws:
IllegalArgumentException - if the given object is not the correct type, ObjectNode.

removeAll

public boolean removeAll(Collection c)
                  throws IllegalArgumentException

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

retainAll

public boolean retainAll(Collection c)
                  throws IllegalArgumentException

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

set

public Object set(int index,
                  Object element)
           throws IllegalArgumentException

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