Package org.geotools.feature
Class FeatureComparators.Name
Object
Name
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- FeatureComparators
A Comparator which performs the comparison on attributes with a given name.
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
NameCreate a new Comparator based on the given index.- Parameters:
- name- The attribute name.
 
 
- 
- 
Method Details- 
compareImplementation of Comparator. Calls compareAtts to perform the actual comparison.- Specified by:
- comparein interface- Comparator
- Parameters:
- o1- The first Feature.
- o2- The second Feature
- Returns:
- A value indicating less than, equal, or greater than.
 
- 
compareAttsCompares the two attributes.- Parameters:
- att1- The first attribute to compare.
- att2- The second attribute to compare.
- Returns:
- A value indicating less than, equal, or greater than.
 
 
-