public class RankingComparator extends Object implements Comparator<Solution>
| Constructor and Description |
|---|
RankingComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Solution solution1,
Solution solution2)
Compares two solutions according to the ranking attribute.
|
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 int compare(Solution solution1, Solution solution2)
compare in interface Comparator<Solution>solution1 - Object representing the first solution.solution2 - Object representing the second solution.Copyright © 2015. All rights reserved.