Class Resource.RequestComparator<T extends Number & Comparable<T>>
java.lang.Object
nl.tudelft.simulation.dsol.formalisms.Resource.RequestComparator<T>
- Type Parameters:
T
- the simulation time type to use.
- All Implemented Interfaces:
Comparator<Resource.Request<T>>
- Enclosing class:
- Resource<T extends Number & Comparable<T>>
public static class Resource.RequestComparator<T extends Number & Comparable<T>>
extends Object
implements Comparator<Resource.Request<T>>
the RequestComparator. This comparator first checks on priority, then on ID.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(Resource.Request<T> arg0, Resource.Request<T> arg1) 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
-
Constructor Details
-
RequestComparator
public RequestComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T extends Number & Comparable<T>>
-