net.datastructures
Class HeapPriorityQueue.MyEntry
java.lang.Object
net.datastructures.HeapPriorityQueue.MyEntry
- All Implemented Interfaces:
- Entry
- Direct Known Subclasses:
- HeapAdaptablePriorityQueue.LocationAwareEntry
- Enclosing class:
- HeapPriorityQueue
- protected static class HeapPriorityQueue.MyEntry
- extends Object
- implements Entry
Inner class for heap entries.
key
protected Object key
value
protected Object value
HeapPriorityQueue.MyEntry
public HeapPriorityQueue.MyEntry(Object k,
Object v)
key
public Object key()
- Description copied from interface:
Entry
- Returns the key stored in this entry.
- Specified by:
key
in interface Entry
value
public Object value()
- Description copied from interface:
Entry
- Returns the value stored in this entry.
- Specified by:
value
in interface Entry
toString
public String toString()