org.jrdf.graph
Interface Bag<ObjectNode>

All Superinterfaces:
Collection<ObjectNode>, Container<ObjectNode>, Iterable<ObjectNode>
All Known Implementing Classes:
BagImpl

public interface Bag<ObjectNode>
extends Container<ObjectNode>

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: 1045 $
Author:
Andrew Newman

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

Method Detail

addAll

boolean addAll(Collection<? extends ObjectNode> c)
               throws IllegalArgumentException

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