org.jrdf.graph
Interface Bag

All Superinterfaces:
Collection, Container
All Known Implementing Classes:
BagImpl

public interface Bag
extends Container

A Bag is a group of statements that are an unorderd list which allow duplicates. The order in which the objects go in may not be the order in which they are returned.

Version:
$Revision: 1.1 $
Author:
Andrew Newman

Method Summary
 boolean addAll(Collection c)
          
 boolean containsAll(Collection c)
          
 boolean removeAll(Collection c)
          
 boolean retainAll(Collection c)
          
 
Methods inherited from interface org.jrdf.graph.Container
add, remove
 
Methods inherited from interface java.util.Collection
clear, contains, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 

Method Detail

containsAll

public boolean containsAll(Collection c)
                    throws IllegalArgumentException

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

addAll

public boolean addAll(Collection c)
               throws IllegalArgumentException

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

removeAll

public boolean removeAll(Collection c)
                  throws IllegalArgumentException

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

retainAll

public boolean retainAll(Collection c)
                  throws IllegalArgumentException

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