org.jrdf.graph
Interface Alternative

All Superinterfaces:
Collection, Container
All Known Implementing Classes:
AlternativeImpl

public interface Alternative
extends Container

An Alt is a list of unordered statements which prevents duplicates. It represents objects which are semantically the same. The order in which the objects go in may not be the order in which they are returned.

Version:
$Revision: 1.1 $
Author:
Andrew Newman

Method Summary
 boolean addAll(Collection c)
          
 boolean containsAll(Collection c)
          
 boolean removeAll(Collection c)
          
 boolean retainAll(Collection c)
          
 
Methods inherited from interface org.jrdf.graph.Container
add, remove
 
Methods inherited from interface java.util.Collection
clear, contains, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 

Method Detail

containsAll

public boolean containsAll(Collection c)
                    throws IllegalArgumentException

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

addAll

public boolean addAll(Collection c)
               throws IllegalArgumentException

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

removeAll

public boolean removeAll(Collection c)
                  throws IllegalArgumentException

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

retainAll

public boolean retainAll(Collection c)
                  throws IllegalArgumentException

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