|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- Key typeV
- Value typepublic interface HeapNode<K extends Comparable<K>,V extends Identifiable>
Defines the requirements for an object that can be used as a node in a Heap.
Method Summary | |
---|---|
K |
getKey()
Returns the key of this HeapNode. |
V |
getValue()
Returns the value of this HeapNode. |
void |
setKey(K key)
Sets the key of this HeapNode. |
void |
setValue(V value)
Sets the value of this HeapNode. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
K getKey()
void setKey(K key)
key
- the key to be setV getValue()
void setValue(V value)
value
- the value to be set
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |