| |
|
| java.lang.Object org.geotools.feature.FeatureComparators
FeatureComparators | final public class FeatureComparators (Code) | | A utility class for creating simple Comparators for Features.
author: Ian Schneider |
byAttributeIndex | public static java.util.Comparator byAttributeIndex(int idx)(Code) | | Create a Comparator which compares Features by the attribute at the
given index. The attribute at the index MUST be Comparable. This will
probably not work for heterogenous collections, UNLESS the classes at
the given index are the same.
Parameters: idx - The index to look up attributes at. A new Comparator. |
byAttributeName | public static java.util.Comparator byAttributeName(String name)(Code) | | Create a Comparator which compares Features by the attribute found at
the given path. The attribute found MUST be Comparable. This will
probably not work for heterogenous collections, UNLESS the attributes
found are the same class.
Parameters: name - The xpath to use while comparing. A new Comparator. |
|
|
|