org.geotools.feature
Class AbstractFeatureCollection

java.lang.Object
  extended byorg.geotools.feature.AbstractFeatureCollection
All Implemented Interfaces:
java.util.Collection, Feature, FeatureCollection, FeatureResults
Direct Known Subclasses:
DataFeatureCollection, DefaultFeatureCollection

public abstract class AbstractFeatureCollection
extends java.lang.Object
implements FeatureCollection

Helper methods to get us started on the implementation road for FeatureCollections.

Since:
2.1.RC0
Author:
jgarnett

Nested Class Summary
 
Nested classes inherited from class org.geotools.feature.Feature
Feature.NULL
 
Constructor Summary
AbstractFeatureCollection()
           
 
Method Summary
protected  java.util.Set fids(java.util.Collection collection)
          Get the set of fids for the provided collection.
protected  boolean isFeatures(java.util.Collection collection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

AbstractFeatureCollection

public AbstractFeatureCollection()
Method Detail

fids

protected java.util.Set fids(java.util.Collection collection)
Get the set of fids for the provided collection.

By doing a quick pass through the collection we can do comparisons based on Feature ID (rather then collection membership).

A subclass that tracks its FID information may wish to override this method.


isFeatures

protected boolean isFeatures(java.util.Collection collection)


Copyright © GeoTools. All Rights Reserved.