net.datastructures
Class AdjacencyListGraph.MyPosition
java.lang.Object
net.datastructures.HashTable
net.datastructures.AdjacencyListGraph.MyPosition
- All Implemented Interfaces:
- DecorablePosition, Map, Position
- Direct Known Subclasses:
- AdjacencyListGraph.MyEdge, AdjacencyListGraph.MyVertex
- Enclosing class:
- AdjacencyListGraph
- protected static class AdjacencyListGraph.MyPosition
- extends HashTable
- implements DecorablePosition
Implementation of a decorable position by means of a hash
table.
Field Summary |
protected Object |
elem
The element stored at this position. |
Methods inherited from class net.datastructures.HashTable |
checkKey, findEntry, get, hashValue, isEmpty, keys, put, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elem
protected Object elem
- The element stored at this position.
AdjacencyListGraph.MyPosition
protected AdjacencyListGraph.MyPosition()
element
public Object element()
- Returns the element stored at this position.
- Specified by:
element
in interface Position
setElement
public void setElement(Object o)
- Sets the element stored at this position.