net.datastructures - version 5.0

net.datastructures
Class AdjacencyListGraph.MyPosition<T>

java.lang.Object
  extended by net.datastructures.HashTableMap<Object,Object>
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.datastructures.HashTableMap
HashTableMap.HashEntry<K,V>
 
Field Summary
protected  T elem
          The element stored at this position.
 
Fields inherited from class net.datastructures.HashTableMap
AVAILABLE, bucket, capacity, n, prime, scale, shift
 
Constructor Summary
protected AdjacencyListGraph.MyPosition()
           
 
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
 
Methods inherited from interface net.datastructures.Map
entrySet, get, isEmpty, keySet, put, remove, size, values
 

Field Detail

elem

protected T elem
The element stored at this position.

Constructor Detail

AdjacencyListGraph.MyPosition

protected AdjacencyListGraph.MyPosition()
Method Detail

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.


net.datastructures - version 5.0