com.vividsolutions.jump.workbench.model
Class OneItemFeatureCollection

java.lang.Object
  extended by com.vividsolutions.jump.feature.FeatureCollectionWrapper
      extended by com.vividsolutions.jump.workbench.model.OneItemFeatureCollection
All Implemented Interfaces:
FeatureCollection

public class OneItemFeatureCollection
extends FeatureCollectionWrapper

Restricts the number of Features in a FeatureCollection to 1.


Constructor Summary
OneItemFeatureCollection(FeatureCollection fc)
           
 
Method Summary
 void add(Feature feature)
          Adds a feature to this collection.
 
Methods inherited from class com.vividsolutions.jump.feature.FeatureCollectionWrapper
addAll, checkNotWrappingSameClass, clear, getEnvelope, getFeatures, getFeatureSchema, getUltimateWrappee, getWrappee, hasWrapper, isEmpty, iterator, query, remove, remove, removeAll, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneItemFeatureCollection

public OneItemFeatureCollection(FeatureCollection fc)
Method Detail

add

public void add(Feature feature)
Description copied from interface: FeatureCollection
Adds a feature to this collection.

Specified by:
add in interface FeatureCollection
Overrides:
add in class FeatureCollectionWrapper
Parameters:
feature - a Feature to add to the end of this collection