net.datastructures - version 5.0

net.datastructures
Class HeapAdaptablePriorityQueue.LocationAwareEntry<K,V>

java.lang.Object
  extended by net.datastructures.HeapPriorityQueue.MyEntry<K,V>
      extended by net.datastructures.HeapAdaptablePriorityQueue.LocationAwareEntry<K,V>
All Implemented Interfaces:
Entry<K,V>
Enclosing class:
HeapAdaptablePriorityQueue<K,V>

protected static class HeapAdaptablePriorityQueue.LocationAwareEntry<K,V>
extends HeapPriorityQueue.MyEntry<K,V>
implements Entry<K,V>

Inner class for a location-aware entry.


Field Summary
protected  Position loc
           
 
Fields inherited from class net.datastructures.HeapPriorityQueue.MyEntry
key, value
 
Constructor Summary
HeapAdaptablePriorityQueue.LocationAwareEntry(K k, V v)
           
HeapAdaptablePriorityQueue.LocationAwareEntry(K k, V v, Position pos)
           
 
Method Summary
protected  Position location()
           
protected  K setKey(K k)
           
protected  Position setLocation(Position pos)
           
protected  V setValue(V v)
           
 
Methods inherited from class net.datastructures.HeapPriorityQueue.MyEntry
getKey, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.datastructures.Entry
getKey, getValue
 

Field Detail

loc

protected Position loc
Constructor Detail

HeapAdaptablePriorityQueue.LocationAwareEntry

public HeapAdaptablePriorityQueue.LocationAwareEntry(K k,
                                                     V v)

HeapAdaptablePriorityQueue.LocationAwareEntry

public HeapAdaptablePriorityQueue.LocationAwareEntry(K k,
                                                     V v,
                                                     Position pos)
Method Detail

location

protected Position location()

setLocation

protected Position setLocation(Position pos)

setKey

protected K setKey(K k)

setValue

protected V setValue(V v)

net.datastructures - version 5.0