Class AbstractFeatureSource

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoOpVectorSource, VectorSource

public abstract class AbstractFeatureSource extends AbstractVectorSource
Source contains a list of features.

For more details see: VectorSource docs

See Also:
  • Field Details

  • Constructor Details

    • AbstractFeatureSource

      public AbstractFeatureSource()
  • Method Details

    • getFeatures

      public List<Feature> getFeatures()
      Returns:
      unmodifiable list of features or empty collection if no features added
    • addFeature

      public void addFeature(Feature feature)
      Adds feature to the source.
      Parameters:
      feature - feature to add
    • addAllFeatures

      public void addAllFeatures(Collection<Feature> features)
      Adds a collection of features.
      Parameters:
      features - collection of features to add
    • removeFeature

      public void removeFeature(Feature feature)
      Removes a feature from the source.
      Parameters:
      feature - feature to remove
    • removeAllFeatures

      public void removeAllFeatures()
      Removes all features from the source.