org.jrdf.graph.mem
Class AlternativeImpl

java.lang.Object
  extended byorg.jrdf.graph.mem.AbstractUnorderedContainer
      extended byorg.jrdf.graph.mem.AlternativeImpl
All Implemented Interfaces:
Alternative, Collection, Container

public class AlternativeImpl
extends AbstractUnorderedContainer
implements Alternative

An implementation of Alternative.

Version:
$Revision: 1.1 $
Author:
Andrew Newman

Constructor Summary
AlternativeImpl()
           
 
Method Summary
 boolean add(Object o)
          
 boolean addAll(Collection c)
          
 boolean containsAll(Collection c)
          
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean removeAll(Collection c)
          
 boolean retainAll(Collection c)
          
 
Methods inherited from class org.jrdf.graph.mem.AbstractUnorderedContainer
clear, contains, isEmpty, iterator, remove, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jrdf.graph.Container
remove
 
Methods inherited from interface java.util.Collection
clear, contains, isEmpty, iterator, size, toArray, toArray
 

Constructor Detail

AlternativeImpl

public AlternativeImpl()
Method Detail

containsAll

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

Specified by:
containsAll in interface Alternative
Parameters:
c -

add

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

Specified by:
add in interface Container
Overrides:
add in class AbstractUnorderedContainer
Throws:
IllegalArgumentException

addAll

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

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

removeAll

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

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

retainAll

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

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

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Overrides:
hashCode in class AbstractUnorderedContainer

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection
Specified by:
equals in class AbstractUnorderedContainer