org.jrdf.graph.mem
Class AbstractUnorderedContainer
java.lang.Object
org.jrdf.graph.mem.AbstractUnorderedContainer
- All Implemented Interfaces:
- Collection, Container
- Direct Known Subclasses:
- AlternativeImpl, BagImpl
- public abstract class AbstractUnorderedContainer
- extends Object
- implements Container
The base class for the implementation of Bag and Alternative.
- Version:
- $Revision: 1.1 $
- Author:
- Andrew Newman
AbstractUnorderedContainer
public AbstractUnorderedContainer()
size
public int size()
- Specified by:
size
in interface Collection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Collection
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interface Collection
add
public boolean add(Object o)
throws IllegalArgumentException
- Description copied from interface:
Container
-
- Specified by:
add
in interface Container
- Parameters:
o
-
- 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
- Parameters:
o
-
- Throws:
IllegalArgumentException
- if the given object is not the correct
type, ObjectNode.
clear
public void clear()
- Specified by:
clear
in interface Collection
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
equals
public abstract boolean equals(Object o)
- Specified by:
equals
in interface Collection