public static class FeatureComparators.Index extends Object implements Comparator
Constructor and Description |
---|
Index(int i)
Create a new Comparator based on the given index.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2)
Implementation of Comparator.
|
protected int |
compareAtts(Object att1,
Object att2)
Compares the two attributes.
|
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 Index(int i)
i
- The index.public int compare(Object o1, Object o2)
compare
in interface Comparator
o1
- The first Feature.o2
- The second FeatureCopyright © 1996–2019 Geotools. All rights reserved.