org.jrdf.graph.mem
Class BagImpl

java.lang.Object
  extended by org.jrdf.graph.mem.AbstractUnorderedContainer<ObjectNode>
      extended by 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

Field Summary
 
Fields inherited from class org.jrdf.graph.mem.AbstractUnorderedContainer
elements, key
 
Constructor Summary
BagImpl()
           
 
Method Summary
 boolean addAll(Collection<? extends ObjectNode> 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
add, 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
add, contains, iterator, remove, toArray
 
Methods inherited from interface java.util.Collection
clear, isEmpty, size, toArray
 

Constructor Detail

BagImpl

public BagImpl()
Method Detail

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>