public static class FeatureComparators.Name extends Object implements Comparator
Constructor and Description |
---|
Name(String name)
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 Name(String name)
name
- The attribute name.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.