public class ResilientScoreComparator extends Object implements Comparator<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(Score a,
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(Score a, Score b)
compare
in interface Comparator<Score>
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.