public class SortedSimpleFeatureCollection extends DecoratingSimpleFeatureCollection
Hints.MAX_MEMORY_SORT
feature countdelegate
Constructor and Description |
---|
SortedSimpleFeatureCollection(SimpleFeatureCollection delegate,
SortBy[] sort) |
Modifier and Type | Method and Description |
---|---|
SimpleFeatureIterator |
features()
Obtain a SimpleFeatureIterator of the Features within this SimpleFeatureCollection.
|
accepts, canDelegate, contains, containsAll, equals, getBounds, getID, getSchema, hashCode, isEmpty, size, sort, subCollection, toArray, toArray
public SortedSimpleFeatureCollection(SimpleFeatureCollection delegate, SortBy[] sort)
public SimpleFeatureIterator features()
SimpleFeatureCollection
The implementation of FeatureIterator must adhere to the rules of fail-fast concurrent
modification. In addition (to allow for resource backed collections) the
SimpleFeatureIterator.close()
method must be called.
Example use:
SimpleFeatureIterator iterator=collection.features();
try {
while( iterator.hasNext() ){
SimpleFeature feature = iterator.next();
System.out.println( feature.getID() );
}
}
finally {
iterator.close();
}
features
in interface SimpleFeatureCollection
features
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
features
in class DecoratingSimpleFeatureCollection
Copyright © 1996–2019 Geotools. All rights reserved.