Package cz.muni.fi.xkozubi1
Class EstimatedDurationComparator
- java.lang.Object
-
- cz.muni.fi.xkozubi1.EstimatedDurationComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Queue.BuildableItem>
public class EstimatedDurationComparator extends Object implements Comparator<Queue.BuildableItem>, Serializable
Compares Queue.BuildableItems by getEstimatedDuration(). Used with ShutdownQueueSorter.- Author:
- Dominik Kozubik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EstimatedDurationComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Queue.BuildableItem buildableItem0, Queue.BuildableItem buildableItem1)
-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Queue.BuildableItem buildableItem0, Queue.BuildableItem buildableItem1)
- Specified by:
compare
in interfaceComparator<Queue.BuildableItem>
-
-