org.jrdf.graph.mem
Class BagImpl
java.lang.Object
org.jrdf.graph.mem.AbstractUnorderedContainer<ObjectNode>
org.jrdf.graph.mem.BagImpl
- All Implemented Interfaces:
- Iterable<ObjectNode>, Collection<ObjectNode>, Bag<ObjectNode>, Container<ObjectNode>
public final class BagImpl
- extends AbstractUnorderedContainer<ObjectNode>
- implements Bag<ObjectNode>
An implementation of Bag.
- Version:
- $Revision: 1045 $
- Author:
- Andrew Newman
BagImpl
public BagImpl()
containsAll
public boolean containsAll(Collection<?> c)
- Description copied from interface:
Container
-
- Specified by:
containsAll in interface Collection<ObjectNode>- Specified by:
containsAll in interface Container<ObjectNode>
addAll
public boolean addAll(Collection<? extends ObjectNode> c)
- Description copied from interface:
Bag
-
- Specified by:
addAll in interface Collection<ObjectNode>- Specified by:
addAll in interface Bag<ObjectNode>- Specified by:
addAll in interface Container<ObjectNode>
- Parameters:
c -
removeAll
public boolean removeAll(Collection<?> c)
- Description copied from interface:
Container
-
- Specified by:
removeAll in interface Collection<ObjectNode>- Specified by:
removeAll in interface Container<ObjectNode>
retainAll
public boolean retainAll(Collection<?> c)
- Description copied from interface:
Container
-
- Specified by:
retainAll in interface Collection<ObjectNode>- Specified by:
retainAll in interface Container<ObjectNode>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<ObjectNode>- Overrides:
hashCode in class AbstractUnorderedContainer<ObjectNode>
equals
public boolean equals(Object obj)
- Specified by:
equals in interface Collection<ObjectNode>- Specified by:
equals in class AbstractUnorderedContainer<ObjectNode>