java.lang.Object
org.cicirello.ds.PriorityQueueNode<E>
- Type Parameters:
E
- The type of element contained in the PriorityQueueNode.
- Direct Known Subclasses:
PriorityQueueNode.Double
,PriorityQueueNode.Integer
An instances of the nested subclasses of this class encapsulate an (element, priority) pair for
use by the various priority queue classes of the library.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
An instance of this class encapsulates an (element, priority) pair for a double valued priority.static final class
An instance of this class encapsulates an (element, priority) pair for an integer valued priority. -
Method Summary
-
Method Details
-
equals
Checks if another PriorityQueueNode is equal to this one. -
getElement
Gets the encapsulated object.- Returns:
- The object within the pair.
-
hashCode
public int hashCode()Computes the hashCode of the PriorityQueueNode.
-