|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.task.queue.PriorityComparator
public class PriorityComparator
The PriorityComparator is used to compare the priorities of two Task queues in the MultiPriorityQueue.
Constructor Summary | |
---|---|
PriorityComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.Integer firstPriority,
java.lang.Integer secondPriority)
Compares the priorities of two Task queues. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public PriorityComparator()
Method Detail |
---|
public int compare(java.lang.Integer firstPriority, java.lang.Integer secondPriority)
compare
in interface java.util.Comparator<java.lang.Integer>
firstPriority
- The priority of the first queue.secondPriority
- The priority of the second queue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |