org.geotools.feature
Interface FeatureList

All Superinterfaces:
java.util.Collection, Feature, FeatureCollection, FeatureResults
All Known Subinterfaces:
FeatureDocument

public interface FeatureList
extends FeatureCollection

A list of Features. Allows getting and setting of Features at an index.

Author:
Ian Schneider
Task:
REVISIT: make closer to List interface? Specify the exceptions to be thrown and have set return the Feature replaced?

Nested Class Summary
 
Nested classes inherited from class org.geotools.feature.Feature
Feature.NULL
 
Method Summary
 Feature getFeature(int idx)
          Returns the feature at the specified index of the list.
 void setFeature(int idx, Feature f)
          Replaces the element at the specified position in this list with the specified element.
 
Methods inherited from interface org.geotools.feature.FeatureCollection
addListener, close, close, features, getFeatureType, getSchema, iterator, removeListener
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 
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

getFeature

public Feature getFeature(int idx)
Returns the feature at the specified index of the list.

Parameters:
idx - the index of the feature to return.
Returns:
the feature at the specified position of the list.

setFeature

public void setFeature(int idx,
                       Feature f)
Replaces the element at the specified position in this list with the specified element.

Parameters:
idx - index of feature to replace.
f - feature to be stored at the specified position.


Copyright © GeoTools. All Rights Reserved.