|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A container is a collection of elements, each of which is a generic Object. An element can be stored multiple times in a container.
This is the base interface for all the container interfaces in
the "core" package (e.g., Sequence,
PriorityQueue), by way of the subinterfaces
PositionalContainer and KeyBasedContainer.
PositionalContainer,
KeyBasedContainer,
jdsl.simple.api.Container| Method Summary | |
java.util.Iterator |
elements()
Returns an Iterator of the elements stored in the container. |
boolean |
isEmpty()
Tests if the container is empty. |
Container |
newContainer()
Instantiates another container of the same class (without knowing the class). |
int |
size()
Return the number of elements stored in the container, where each element is counted according to is multiplicity. |
| Method Detail |
public int size()
public boolean isEmpty()
public java.util.Iterator elements()
public Container newContainer()
throws InvalidContainerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||