|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDecoratingSimpleFeatureCollection
CollectionFeatureSource.SubCollection
protected class CollectionFeatureSource.SubCollection
SubCollection for CollectionFeatureSource.
Will route any calls refining the feature collection back to CollectionFeatureSource. This is based on the success of ContentFeatureCollection.
Field Summary |
---|
Fields inherited from class DecoratingSimpleFeatureCollection |
---|
delegate |
Constructor Summary | |
---|---|
protected |
CollectionFeatureSource.SubCollection(Query query,
SimpleFeatureCollection features)
|
Method Summary | |
---|---|
SimpleFeatureCollection |
sort(SortBy order)
Obtained sorted contents. |
SimpleFeatureCollection |
subCollection(Filter filter)
SimpleFeatureCollection "view" indicated by provided filter. |
Methods inherited from class DecoratingSimpleFeatureCollection |
---|
accepts, canDelegate, contains, containsAll, equals, features, getBounds, getID, getSchema, hashCode, isEmpty, size, toArray, toArray |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CollectionFeatureSource.SubCollection(Query query, SimpleFeatureCollection features)
Method Detail |
---|
public SimpleFeatureCollection subCollection(Filter filter)
FeatureCollection
The contents of the returned SimpleFeatureCollection are determined by applying the provider Filter to the entire contents of this FeatureCollection. The result is "live" and modifications will be shared.
This method is used cut down on the number of filter based methods required for a useful SimpleFeatureCollection construct. The FeatureCollections returned really should be considered as a temporary "view" used to control the range of a removeAll, or modify operation.
Example Use:
collection.subCollection( filter ).clear();
The above recommended use is agreement with the Collections API precident of
List.subList( start, end ).
The results of subCollection:
subCollection
in interface SimpleFeatureCollection
subCollection
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
subCollection
in class DecoratingSimpleFeatureCollection
FeatureList
public SimpleFeatureCollection sort(SortBy order)
FeatureCollection
This method may not be supported by all implementations, consider the use of FeatureSource.features( Query ).
sort
in interface SimpleFeatureCollection
sort
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
sort
in class DecoratingSimpleFeatureCollection
order
- Sort order
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |