net.datastructures
Class AdjacencyListGraph.MyPosition<T>
java.lang.Object
net.datastructures.HashTableMap<Object,Object>
net.datastructures.AdjacencyListGraph.MyPosition<T>
- All Implemented Interfaces:
- DecorablePosition<T>, Map<Object,Object>, Position<T>
- Direct Known Subclasses:
- AdjacencyListGraph.MyEdge, AdjacencyListGraph.MyVertex
- Enclosing class:
- AdjacencyListGraph<V,E>
protected static class AdjacencyListGraph.MyPosition<T>
- extends HashTableMap<Object,Object>
- implements DecorablePosition<T>
Implementation of a decorable position by means of a hash
table.
Field Summary |
protected T |
elem
The element stored at this position. |
Method Summary |
T |
element()
Returns the element stored at this position. |
void |
setElement(T o)
Sets the element stored at this position. |
Methods inherited from class net.datastructures.HashTableMap |
checkKey, entrySet, findEntry, get, hashValue, isEmpty, keySet, 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 T elem
- The element stored at this position.
AdjacencyListGraph.MyPosition
protected AdjacencyListGraph.MyPosition()
element
public T element()
- Returns the element stored at this position.
- Specified by:
element
in interface Position<T>
setElement
public void setElement(T o)
- Sets the element stored at this position.