Class OneItemFeatureCollection
- java.lang.Object
-
- org.locationtech.jts.jump.feature.FeatureCollectionWrapper
-
- org.locationtech.jts.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
Constructors Constructor Description OneItemFeatureCollection(FeatureCollection fc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Feature feature)
Adds a feature to this collection.-
Methods inherited from class org.locationtech.jts.jump.feature.FeatureCollectionWrapper
addAll, checkNotWrappingSameClass, clear, getEnvelope, getFeatures, getFeatureSchema, getUltimateWrappee, getWrappee, hasWrapper, isEmpty, iterator, query, remove, remove, removeAll, size
-
-
-
-
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 interfaceFeatureCollection
- Overrides:
add
in classFeatureCollectionWrapper
- Parameters:
feature
- a Feature to add to the end of this collection
-
-