public class FitnessComparator<S extends Solution> extends Object implements Comparator<S>
Comparator (a method for comparing
Solution objects) based on the fitness value returned by the
method getFitness.| Constructor and Description |
|---|
FitnessComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(S solution1,
S solution2)
Compares two solutions.
|
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(S solution1, S solution2)
compare in interface Comparator<S extends Solution>solution1 - Object representing the first Solution.solution2 - Object representing the second Solution.Copyright © 2015. All rights reserved.