public class ResilientScoreComparator extends Object implements Comparator<org.optaplanner.core.api.score.Score>, Serializable
NaturalScoreComparator
, but is able to compare Score
s of different types or nulls.Constructor and Description |
---|
ResilientScoreComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.optaplanner.core.api.score.Score a,
org.optaplanner.core.api.score.Score b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(org.optaplanner.core.api.score.Score a, org.optaplanner.core.api.score.Score b)
compare
in interface Comparator<org.optaplanner.core.api.score.Score>
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.