public class SimpleQueueComparator extends Object implements Comparator<hudson.model.Queue.BuildableItem>
| Constructor and Description |
|---|
SimpleQueueComparator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDesire(long longA,
long longB)
Add desire of order relationship between two items.
|
int |
compare(hudson.model.Queue.BuildableItem buildableItem1,
hudson.model.Queue.BuildableItem buildableItem2) |
static SimpleQueueComparator |
getInstance() |
boolean |
hasDesiresFor(long key) |
void |
removeDesireOfKey(long id) |
void |
resetDesires() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static SimpleQueueComparator getInstance()
public boolean hasDesiresFor(long key)
public int compare(hudson.model.Queue.BuildableItem buildableItem1,
hudson.model.Queue.BuildableItem buildableItem2)
compare in interface Comparator<hudson.model.Queue.BuildableItem>public void addDesire(long longA,
long longB)
longA - Id of desired more important itemlongB - Id of less important Queue.Itempublic void removeDesireOfKey(long id)
public void resetDesires()
Copyright © 2016–2020. All rights reserved.