Class LexicographicalComparator
java.lang.Object
org.moeaframework.core.comparator.LexicographicalComparator
- All Implemented Interfaces:
Comparator<Solution>
Compares solutions lexicographically.
-
Constructor Summary
ConstructorDescriptionConstructs a comparator for comparing solutions lexicographically. -
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
-
LexicographicalComparator
public LexicographicalComparator()Constructs a comparator for comparing solutions lexicographically.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Solution>
-