Class DataSourceRemovedEvent
java.lang.Object
org.openstreetmap.josm.data.osm.AbstractDataSourceChangeEvent
org.openstreetmap.josm.data.osm.event.DataSourceRemovedEvent
- All Implemented Interfaces:
DataSourceChangeEvent
A data source was removed
- Since:
- 15609
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Set<DataSource>private Set<DataSource>private final Set<DataSource> -
Constructor Summary
ConstructorsConstructorDescriptionDataSourceRemovedEvent(DataSet source, Set<DataSource> old, Stream<DataSource> removedDataSources) Create a Data Source change event -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.osm.AbstractDataSourceChangeEvent
getOldDataSources, getSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.data.osm.DataSourceChangeEvent
isNop
-
Field Details
-
current
-
removed
-
added
-
-
Constructor Details
-
DataSourceRemovedEvent
public DataSourceRemovedEvent(DataSet source, Set<DataSource> old, Stream<DataSource> removedDataSources) Create a Data Source change event- Parameters:
source- The DataSet that is originating the changeold- The previous set of DataSourcesremovedDataSources- The data sources that are being removed
-
-
Method Details
-
getDataSources
Description copied from interface:DataSourceChangeEventGets the new data sources. New data sources are added to the end of the collection.This collection cannot be modified and will not change.
- Returns:
- The new data sources
-
getRemoved
Description copied from interface:DataSourceChangeEventGets the Data Sources that have been removed from the selection.Those are the primitives contained in
DataSourceChangeEvent.getOldDataSources()but not inDataSourceChangeEvent.getDataSources()This collection cannot be modified and will not change.
- Returns:
- The DataSources that were removed
-
getAdded
Description copied from interface:DataSourceChangeEventGets the data sources that have been added to the selection.Those are the data sources contained in
DataSourceChangeEvent.getDataSources()but not inDataSourceChangeEvent.getOldDataSources()This collection cannot be modified and will not change.
- Returns:
- The data sources that were added
-
toString
-