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, toArraypublic SortedSimpleFeatureCollection(SimpleFeatureCollection delegate, SortBy[] sort)
public SimpleFeatureIterator features()
SimpleFeatureCollectionThe 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 SimpleFeatureCollectionfeatures in interface FeatureCollection<SimpleFeatureType,SimpleFeature>features in class DecoratingSimpleFeatureCollectionCopyright © 1996–2019 Geotools. All rights reserved.