public final class FeatureComparator extends Object implements Comparator<Feature>
Constructor and Description |
---|
FeatureComparator(FeatureQuery.SortOperator sortBy)
Creates a new instance with the specified "sortBy" operator.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Feature o1,
Feature o2) |
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 FeatureComparator(@NotNull FeatureQuery.SortOperator sortBy)
sortBy
- Sort operator.public int compare(@NotNull Feature o1, @NotNull Feature o2)
compare
in interface Comparator<Feature>