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
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.