public abstract class ChainableComparator extends Object implements Comparator<Hit>
Constructor and Description |
---|
ChainableComparator(Comparator<Hit> secondaryComparator)
Creates this comparator, given a secondary comparator, or null if there is no secondary
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Hit first,
Hit second)
Returns the comparison form the secondary comparison, or 0 if the secondary is null.
|
Comparator<Hit> |
getSecondaryComparator()
Returns the comparator to use to compare hits which are equal according to this, or null if none
|
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 ChainableComparator(Comparator<Hit> secondaryComparator)
public Comparator<Hit> getSecondaryComparator()
public int compare(Hit first, Hit second)
return super.compare(first,second)
at the end of the subclass' implementation.compare
in interface Comparator<Hit>
Copyright © 2018. All rights reserved.