All Packages Class Hierarchy This Package Previous Next Index
Interface jdsl.simple.api.SimpleContainer
- public interface SimpleContainer
Interface for a generic container. 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 interface in the
"simple" package defines only the basic methods of a container.
- Version:
- $Revision: 1.2 $, $Date: 1998/07/02 21:24:46 $
- Author:
- Michael T. Goodrich, Mark Handy, Roberto Tamassia
- See Also:
- RankedSequence, PriorityQueue, Dictionary, Container
-
isEmpty()
-
Tests if the container is empty.
-
size()
-
Return the number of elements stored in the container, where each element is counted
according to is multiplicity.
size
public abstract int size()
- Return the number of elements stored in the container, where each element is counted
according to is multiplicity.
- Returns:
- number of elements in the container.
isEmpty
public abstract boolean isEmpty()
- Tests if the container is empty.
- Returns:
- true if the container is empty, false otherwise.
All Packages Class Hierarchy This Package Previous Next Index