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.


Method Index

 o clear()
Empty the container.
 o isEmpty()
Determine if container is empty.
 o size()
Return the number of elements within the container.

Methods

 o 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.
 o 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.
 o clear
 public abstract void clear()
Empty the container.

Postcondition:
clears container


All Packages  Class Hierarchy  This Package  Previous  Next  Index