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
equals
public FlatteningHardSoftScoreComparator(int hardWeight)
public int getHardWeight()
public int compare(Score s1, Score s2)
compare
in interface Comparator<Score>
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.