Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.heap
Interface HeapNode<K extends Comparable<K>,V extends Identifiable>

Type Parameters:
K - Key type
V - Value type
All Superinterfaces:
Comparable<HeapNode<K,V>>, Serializable
All Known Implementing Classes:
DefaultHeapNode, PQNode

public interface HeapNode<K extends Comparable<K>,V extends Identifiable>
extends Comparable<HeapNode<K,V>>, Serializable

Defines the requirements for an object that can be used as a node in a Heap.

Author:
Elke Achtert

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

getKey

K getKey()
Returns the key of this HeapNode.

Returns:
the key of this HeapNode

setKey

void setKey(K key)
Sets the key of this HeapNode.

Parameters:
key - the key to be set

getValue

V getValue()
Returns the value of this HeapNode.

Returns:
the value of this HeapNode

setValue

void setValue(V value)
Sets the value of this HeapNode.

Parameters:
value - the value to be set

Release 0.2.1 (2009-07-13_1605)