|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.queue.JPPFPriority
public class JPPFPriority
Encapsulation of an integer value as a priority. This class also defines its natural order as a descending order of priority values.
| Constructor Summary | |
|---|---|
JPPFPriority(int value)
Initialize this priority witht he specified object. |
|
| Method Summary | |
|---|---|
int |
compareTo(JPPFPriority o)
Compare this priority with another. |
boolean |
equals(Object obj)
Indcates whether some object is "equal" to this one. |
int |
getValue()
Get the actual value of the priority. |
int |
hashCode()
Return a hashcode value for this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFPriority(int value)
value - the object used as priority.| Method Detail |
|---|
public int compareTo(JPPFPriority o)
compareTo in interface Comparable<JPPFPriority>o - the priority to compare with.
Comparable.compareTo(java.lang.Object)public int getValue()
public boolean equals(Object obj)
equals in class Objectobj - the object ot compare with.
Object.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||