public class FlatteningHardSoftScoreComparator extends Object implements Comparator<Score>, Serializable
HardSoftScores 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, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic FlatteningHardSoftScoreComparator(int hardWeight)
public int getHardWeight()
public int compare(Score s1, Score s2)
compare in interface Comparator<Score>Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.