Package org.esa.snap.core.util
Class ObservableFeatureCollection
- java.lang.Object
-
- org.geotools.feature.DefaultFeatureCollection
-
- org.esa.snap.core.util.ObservableFeatureCollection
-
- All Implemented Interfaces:
Iterable<org.opengis.feature.simple.SimpleFeature>
,Collection<org.opengis.feature.simple.SimpleFeature>
,org.geotools.data.simple.SimpleFeatureCollection
,org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
public class ObservableFeatureCollection extends org.geotools.feature.DefaultFeatureCollection
The class does not belong to the public API, only for internal Use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObservableFeatureCollection.EVENT_TYPE
static interface
ObservableFeatureCollection.Listener
-
Constructor Summary
Constructors Constructor Description ObservableFeatureCollection(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
add(org.opengis.feature.simple.SimpleFeature feature, boolean fire)
boolean
addAll(Collection<? extends org.opengis.feature.simple.SimpleFeature> collection)
boolean
addAll(org.geotools.feature.FeatureCollection<?,?> collection)
void
addListener(ObservableFeatureCollection.Listener listener)
void
clear()
org.geotools.geometry.jts.ReferencedEnvelope
getBounds()
Iterator<org.opengis.feature.simple.SimpleFeature>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> collection)
void
removeListener(ObservableFeatureCollection.Listener listener)
boolean
retainAll(Collection<?> collection)
-
Methods inherited from class org.geotools.feature.DefaultFeatureCollection
accepts, add, close, collection, contains, containsAll, features, fids, getCount, getID, getSchema, isEmpty, purge, reader, size, sort, subCollection, toArray, toArray, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
addListener
public final void addListener(ObservableFeatureCollection.Listener listener)
-
removeListener
public final void removeListener(ObservableFeatureCollection.Listener listener)
-
add
protected boolean add(org.opengis.feature.simple.SimpleFeature feature, boolean fire)
- Overrides:
add
in classorg.geotools.feature.DefaultFeatureCollection
-
addAll
public boolean addAll(Collection<? extends org.opengis.feature.simple.SimpleFeature> collection)
- Specified by:
addAll
in interfaceCollection<org.opengis.feature.simple.SimpleFeature>
- Overrides:
addAll
in classorg.geotools.feature.DefaultFeatureCollection
-
addAll
public boolean addAll(org.geotools.feature.FeatureCollection<?,?> collection)
- Overrides:
addAll
in classorg.geotools.feature.DefaultFeatureCollection
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<org.opengis.feature.simple.SimpleFeature>
- Overrides:
clear
in classorg.geotools.feature.DefaultFeatureCollection
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<org.opengis.feature.simple.SimpleFeature>
- Overrides:
remove
in classorg.geotools.feature.DefaultFeatureCollection
-
removeAll
public boolean removeAll(Collection<?> collection)
- Specified by:
removeAll
in interfaceCollection<org.opengis.feature.simple.SimpleFeature>
- Overrides:
removeAll
in classorg.geotools.feature.DefaultFeatureCollection
-
retainAll
public boolean retainAll(Collection<?> collection)
- Specified by:
retainAll
in interfaceCollection<org.opengis.feature.simple.SimpleFeature>
- Overrides:
retainAll
in classorg.geotools.feature.DefaultFeatureCollection
-
getBounds
public org.geotools.geometry.jts.ReferencedEnvelope getBounds()
- Specified by:
getBounds
in interfaceorg.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
- Overrides:
getBounds
in classorg.geotools.feature.DefaultFeatureCollection
-
iterator
public Iterator<org.opengis.feature.simple.SimpleFeature> iterator()
- Specified by:
iterator
in interfaceCollection<org.opengis.feature.simple.SimpleFeature>
- Specified by:
iterator
in interfaceIterable<org.opengis.feature.simple.SimpleFeature>
- Overrides:
iterator
in classorg.geotools.feature.DefaultFeatureCollection
-
-