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