Package models.comparators
Class RouteDistanceComparator
java.lang.Object
models.comparators.RouteDistanceComparator
- All Implemented Interfaces:
Comparator<Route>
Compare two Routes by Distance. Used in commands, such as remove_greater, add_if max/min
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
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
-
RouteDistanceComparator
public RouteDistanceComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Route>
-