public class FlatteningHardSoftScoreComparator extends Object implements Comparator<Score>, Serializable
HardSoftScore
s based on the calculation of the hard multiplied by a weight, summed with the soft.Constructor and Description |
---|
FlatteningHardSoftScoreComparator(int hardWeight) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Score s1,
Score s2) |
int |
getHardWeight() |
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 FlatteningHardSoftScoreComparator(int hardWeight)
public int getHardWeight()
public int compare(Score s1, Score s2)
compare
in interface Comparator<Score>
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.