public final class FeatureComparators extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static Comparator |
BY_ID
A utility comparator for comparison by id.
|
Modifier and Type | Method and Description |
---|---|
static Comparator |
byAttributeIndex(int idx)
Create a Comparator which compares Features by the attribute at the given index.
|
static Comparator |
byAttributeName(String name)
Create a Comparator which compares Features by the attribute found at the given path.
|
public static final Comparator BY_ID
public static Comparator byAttributeIndex(int idx)
idx
- The index to look up attributes at.public static Comparator byAttributeName(String name)
name
- The xpath to use while comparing.Copyright © 1996–2019 Geotools. All rights reserved.