org.geotools.feature
Interface FeatureList

All Superinterfaces:
Collection, Feature, FeatureCollection, Iterable, List, ResourceCollection
All Known Subinterfaces:
FeatureDocument
All Known Implementing Classes:
AbstractFeatureList, SubFeatureList

public interface FeatureList
extends 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.
Module:
modules/library/api   (gt2-api.jar) (Maven report) (SVN head)

Nested Class Summary
 
Nested classes/interfaces inherited from interface Feature
Feature.NULL
 
Method Summary
 FeatureList subList(Filter filter)
          Similar to subCollection, explicitly constructs a ordered List.
 
Methods inherited from interface 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 FeatureCollection
accepts, addListener, close, close, features, getFeatureType, getSchema, removeListener, sort, subCollection
 
Methods inherited from interface ResourceCollection
purge
 
Methods inherited from interface Feature
getAttribute, getAttribute, getAttributes, getBounds, getDefaultGeometry, getID, getNumberOfAttributes, setAttribute, setAttribute, setDefaultGeometry
 

Method Detail

subList

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 © 1996-2008 Geotools. All Rights Reserved.