|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The interface Bag provides a data type similar to MultiSets. The sequence of elements delivered by a cursor has no predefined order. However, a subclass may define such an order.
| Field Summary | |
static Function |
FACTORY_METHOD
A factory method to create a default Bag. |
| Method Summary | |
void |
clear()
Removes all elements from the bag such that size will be zero thereafter. |
void |
close()
Releases any resources needed so far. |
Cursor |
cursor()
Creates a cursor to iterate over the elements of the bag. |
void |
insert(java.lang.Object object)
Insert an element into the bag. |
void |
insertAll(java.util.Iterator objects)
Insert a bunch of elements into the bag. |
int |
size()
Returns the number of elements stored in this bag. |
| Field Detail |
public static final Function FACTORY_METHOD
| Method Detail |
public void clear()
public void close()
public Cursor cursor()
public void insert(java.lang.Object object)
object - the element to be inserted.public void insertAll(java.util.Iterator objects)
objects - the iterator providing the elements to be inserted.public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||