Interface InspectableContainer
- All Known Subinterfaces:
- InspectablePositionalContainer, InspectableTree, PositionalContainer, Tree
- public interface InspectableContainer
InspectableContainer: a read-only container for a bunch of objects.
- Author:
- Goodrich & Tamassia
Method Summary |
Iterator |
elements()
get an iterator of all the objects in the container. |
boolean |
isEmpty()
Are there any objects at all? |
int |
size()
The number of objects in the container. |
elements
public Iterator elements()
- get an iterator of all the objects in the container.
- Returns:
- an Iterator which visits all the Objects in unspecified order.
isEmpty
public boolean isEmpty()
- Are there any objects at all?
- Returns:
- true iff there are no objects.
size
public int size()
- The number of objects in the container.
- Returns:
- the number of objects as an int.
Generated by BlueJ