Class FeatureSorter

  • All Implemented Interfaces:
    Comparator<org.opengis.feature.simple.SimpleFeature>

    public class FeatureSorter
    extends Object
    implements Comparator<org.opengis.feature.simple.SimpleFeature>
    Sorts a List of features by one of the fields.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • 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:
        compare in interface Comparator<org.opengis.feature.simple.SimpleFeature>