net.datastructures
Class SortedListPriorityQueue.MyEntry<K,V>
java.lang.Object
net.datastructures.SortedListPriorityQueue.MyEntry<K,V>
- All Implemented Interfaces:
- Entry<K,V>
- Direct Known Subclasses:
- SortedListAdaptablePriorityQueue.LocationAwareEntry
- Enclosing class:
- SortedListPriorityQueue<K,V>
protected static class SortedListPriorityQueue.MyEntry<K,V>
- extends Object
- implements Entry<K,V>
Inner class for entries
Field Summary |
protected K |
k
|
protected V |
v
|
k
protected K k
v
protected V v
SortedListPriorityQueue.MyEntry
public SortedListPriorityQueue.MyEntry(K key,
V value)
getKey
public K getKey()
- Description copied from interface:
Entry
- Returns the key stored in this entry.
- Specified by:
getKey
in interface Entry<K,V>
getValue
public V getValue()
- Description copied from interface:
Entry
- Returns the value stored in this entry.
- Specified by:
getValue
in interface Entry<K,V>
toString
public String toString()
- Overrides:
toString
in class Object