Class NaturalScoreComparator
- java.lang.Object
-
- org.optaplanner.core.api.score.comparator.NaturalScoreComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Score>
@Deprecated public class NaturalScoreComparator extends Object implements Comparator<Score>, Serializable
Deprecated.If you need this, it is trivial to implement viaComparator.comparing(Function)
.Compares by the natural order ofScore
s.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NaturalScoreComparator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compare(Score score1, Score score2)
Deprecated.-
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
-
-
-
-
Method Detail
-
compare
public int compare(Score score1, Score score2)
Deprecated.- Specified by:
compare
in interfaceComparator<Score>
-
-