org.geotools.feature
Interface FeatureList

All Superinterfaces:
java.util.Collection, Feature, FeatureCollection, FeatureResults, java.util.List, ResourceCollection
All Known Subinterfaces:
FeatureDocument
All Known Implementing Classes:
AbstractFeatureList, SubFeatureList

public interface FeatureList
extends java.util.List, FeatureCollection

An ordered List of Features.

A FeatureList is usually retrived from a FeatureCollection with the subCollection( Filter ) operation. How you ask - make use of Filter 1.1 sortBy.

You may check to see if the result of subCollection( Filter ) is a FeatureList using an instanceof check. This often the case, when using not using sortBy the order is usually based on FID.

Author:
Jody Garnett, Refractions Research, Inc.

Nested Class Summary
 
Nested classes inherited from class org.geotools.feature.Feature
Feature.NULL
 
Method Summary
 FeatureList subList(Filter filter)
          Similar to subCollection, explicitly constructs a ordered List.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from interface org.geotools.feature.FeatureCollection
accepts, addListener, close, close, features, getFeatureType, getSchema, removeListener, sort, subCollection
 
Methods inherited from interface org.geotools.data.collection.ResourceCollection
iterator, purge
 
Methods inherited from interface org.geotools.data.FeatureResults
collection, getBounds, getCount, reader
 
Methods inherited from interface org.geotools.feature.Feature
getAttribute, getAttribute, getAttributes, getBounds, getDefaultGeometry, getID, getNumberOfAttributes, getParent, setAttribute, setAttribute, setDefaultGeometry, setParent
 

Method Detail

subList

public FeatureList subList(Filter filter)
Similar to subCollection, explicitly constructs a ordered List.

The list will be ordered:

Parameters:
filter -
Returns:
FeatureList based on features selected by filter


Copyright © GeoTools. All Rights Reserved.