T
- Element typestatic class QueuePriority.CompatorElement<T> extends java.lang.Object implements java.util.Comparator<QueuePriority.Element<T>>
Modifier and Type | Field and Description |
---|---|
(package private) int |
increment
Increment order multiplier
|
Constructor and Description |
---|
QueuePriority.CompatorElement(boolean increment)
Constructs CompatorElement
|
Modifier and Type | Method and Description |
---|---|
int |
compare(QueuePriority.Element<T> o1,
QueuePriority.Element<T> o2)
Compare two elements
|
QueuePriority.CompatorElement(boolean increment)
increment
- Indicates if priority are take in increment orderpublic int compare(QueuePriority.Element<T> o1, QueuePriority.Element<T> o2)
compare
in interface java.util.Comparator<QueuePriority.Element<T>>
o1
- First elemento2
- Second elementComparator.compare(java.lang.Object, java.lang.Object)