All Packages Class Hierarchy This Package Previous Next Index
Interface structure.Container
- public interface Container
This interface describes structures that maintain size information and
may be emptied. Many structures within the structure package are containers.
-
clear()
- Empty the container.
-
isEmpty()
- Determine if container is empty.
-
size()
- Return the number of elements within the container.
size
public abstract int size()
- Return the number of elements within the container.
- Postcondition:
- returns the number elements contained in container.
- Returns:
- The number of elements contained within structure.
isEmpty
public abstract boolean isEmpty()
- Determine if container is empty.
- Postcondition:
- returns true iff container is empty
- Returns:
- True iff container logically contains no elements.
clear
public abstract void clear()
- Empty the container.
- Postcondition:
- clears container
All Packages Class Hierarchy This Package Previous Next Index