|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for a position. A position formalizes the intuitive notion of the "place" where an element is stored in a positional container (sequence, tree, graph). A node of a tree and a vertex of a graph are examples of positions.
PositionalContainer,
InvalidPositionException| Method Summary | |
Container |
container()
Return the container holding this position. |
java.lang.Object |
element()
Return the element stored at this position. |
| Method Detail |
public java.lang.Object element()
throws InvalidPositionException
An InvalidPositionException is thrown if the position is invalid because it was removed from its container.
public Container container()
throws InvalidPositionException
An InvalidPositionException is thrown if the position is invalid because it was removed from its container.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||