Class FeatureSorter
- java.lang.Object
-
- org.hortonmachine.gears.utils.features.FeatureSorter
-
- All Implemented Interfaces:
Comparator<org.opengis.feature.simple.SimpleFeature>
public class FeatureSorter extends Object implements Comparator<org.opengis.feature.simple.SimpleFeature>
Sorts aListof features by one of the fields.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description FeatureSorter(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.opengis.feature.simple.SimpleFeature f1, org.opengis.feature.simple.SimpleFeature f2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
FeatureSorter
public FeatureSorter(String fieldName)
-
-
Method Detail
-
compare
public int compare(org.opengis.feature.simple.SimpleFeature f1, org.opengis.feature.simple.SimpleFeature f2)- Specified by:
comparein interfaceComparator<org.opengis.feature.simple.SimpleFeature>
-
-