|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.FeatureComparators
A utility class for creating simple Comparators for Features.
Nested Class Summary | |
static class |
FeatureComparators.Index
A Comparator which performs the comparison on attributes at a given index. |
static class |
FeatureComparators.Name
A Comparator which performs the comparison on attributes with a given name. |
Field Summary | |
static java.util.Comparator |
BY_ID
A utility comparator for comparison by id. |
Method Summary | |
static java.util.Comparator |
byAttributeIndex(int idx)
Create a Comparator which compares Features by the attribute at the given index. |
static java.util.Comparator |
byAttributeName(java.lang.String name)
Create a Comparator which compares Features by the attribute found at the given path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.Comparator BY_ID
Method Detail |
public static java.util.Comparator byAttributeIndex(int idx)
idx
- The index to look up attributes at.
public static java.util.Comparator byAttributeName(java.lang.String name)
name
- The xpath to use while comparing.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |