|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.calendricsystem.granularitylattice.minpriorityqueue.MPQElement
Title: Minimum Priority Queue Element
Description: A class that is composed of a priority with a particular element that can be put into a priority queue.
Copyright: Copyright (c) 2003
Constructor Summary | |
MPQElement(java.lang.Comparable priority,
java.lang.Object value)
Constructs a minimum priority queue element. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Evaluates whether the given object is equivalent to this MPQElement . |
java.lang.Comparable |
getPriority()
Returns the priority of this element. |
java.lang.Object |
getValue()
Returns the value of this element. |
java.lang.Comparable |
setPriority(java.lang.Comparable priority)
Sets the priority of this element to be something new. |
java.lang.Object |
setValue(java.lang.Object value)
Sets the value of this element to be something new. |
java.lang.String |
toString()
Returns a string representation of this MPQElement . |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MPQElement(java.lang.Comparable priority, java.lang.Object value)
priority
- the priority of the elementvalue
- the element associated with the priorityMethod Detail |
public boolean equals(java.lang.Object o)
MPQElement
.
equals
in class java.lang.Object
o
- the object to compare this element to
public java.lang.Comparable getPriority()
public java.lang.Object getValue()
public java.lang.Comparable setPriority(java.lang.Comparable priority)
priority
- the new priority of this element
public java.lang.Object setValue(java.lang.Object value)
public java.lang.String toString()
MPQElement
.
toString
in class java.lang.Object
MPQElement
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |