org.graffiti.plugins.algorithms.mst
Interface Heap.Entry<E,K>

Type Parameters:
E - The type of elements to be stored in this heap.
K - The type of keys to be associated with the elements of this heap.
Enclosing interface:
Heap<E,K>

public static interface Heap.Entry<E,K>

A heap entry.

Version:
$Revision$ $Date$
Author:
Harald Frankenberger

Method Summary
 boolean equals(Object o)
          Returns true if this entry is equal to the specified value.
 E getElement()
          Returns the element of this entry.
 K getKey()
          Returns the key of this entry.
 int hashCode()
          Returns a hash code for this entry.
 void setKey(K key)
          Sets the key of this entry to the specified value.
 

Method Detail

setKey

void setKey(K key)
Sets the key of this entry to the specified value.

Parameters:
key -

getKey

K getKey()
Returns the key of this entry.

Returns:
the key of this entry.

getElement

E getElement()
Returns the element of this entry.

Returns:
the element of this entry.

equals

boolean equals(Object o)
Returns true if this entry is equal to the specified value.

Overrides:
equals in class Object
Parameters:
o - the object this entry is to compared with for equality
Returns:
true if this entry is equal to the specified value.

hashCode

int hashCode()
Returns a hash code for this entry.

Overrides:
hashCode in class Object
Returns:
a hash code for this entry.


Generated at 2012-05-30 11:01:25 PM CEST