public class DataSourceRemovedEvent extends AbstractDataSourceChangeEvent
Modifier and Type | Field and Description |
---|---|
private java.util.Set<DataSource> |
added |
private java.util.Set<DataSource> |
current |
private java.util.Set<DataSource> |
removed |
Constructor and Description |
---|
DataSourceRemovedEvent(DataSet source,
java.util.Set<DataSource> old,
java.util.stream.Stream<DataSource> removedDataSources)
Create a Data Source change event
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<DataSource> |
getAdded()
Gets the data sources that have been added to the selection.
|
java.util.Set<DataSource> |
getDataSources()
Gets the new data sources.
|
java.util.Set<DataSource> |
getRemoved()
Gets the Data Sources that have been removed from the selection.
|
java.lang.String |
toString() |
getOldDataSources, getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isNop
private java.util.Set<DataSource> current
private final java.util.Set<DataSource> removed
private java.util.Set<DataSource> added
public DataSourceRemovedEvent(DataSet source, java.util.Set<DataSource> old, java.util.stream.Stream<DataSource> removedDataSources)
source
- The DataSet that is originating the changeold
- The previous set of DataSourcesremovedDataSources
- The data sources that are being removedpublic java.util.Set<DataSource> getDataSources()
DataSourceChangeEvent
This collection cannot be modified and will not change.
public java.util.Set<DataSource> getRemoved()
DataSourceChangeEvent
Those are the primitives contained in DataSourceChangeEvent.getOldDataSources()
but not in
DataSourceChangeEvent.getDataSources()
This collection cannot be modified and will not change.
public java.util.Set<DataSource> getAdded()
DataSourceChangeEvent
Those are the data sources contained in DataSourceChangeEvent.getDataSources()
but not in
DataSourceChangeEvent.getOldDataSources()
This collection cannot be modified and will not change.
public java.lang.String toString()
toString
in class java.lang.Object