datastructures

net.datastructures
Class AdjacencyListGraph.MyPosition

java.lang.Object
  extended bynet.datastructures.HashTable
      extended bynet.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.


Nested Class Summary
 
Nested classes inherited from class net.datastructures.HashTable
HashTable.DefaultEqualityTester, HashTable.HashEntry
 
Field Summary
protected  Object elem
          The element stored at this position.
 
Fields inherited from class net.datastructures.HashTable
A, AVAILABLE, n, N, scale, shift, T
 
Constructor Summary
protected AdjacencyListGraph.MyPosition()
           
 
Method Summary
 Object element()
          Returns the element stored at this position.
 void setElement(Object o)
          Sets 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
 
Methods inherited from interface net.datastructures.Map
get, isEmpty, keys, put, remove, size, values
 

Field Detail

elem

protected Object elem
The element stored at this position.

Constructor Detail

AdjacencyListGraph.MyPosition

protected AdjacencyListGraph.MyPosition()
Method Detail

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.


datastructures