org.jrdf.graph.mem
Class AlternativeImpl
java.lang.Object
org.jrdf.graph.mem.AbstractUnorderedContainer
org.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
AlternativeImpl
public AlternativeImpl()
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