K
- The key type of the ObservableSetMultimap
.V
- The value type of the ObservableSetMultimap
.public static class SetMultimapListenerHelper.ElementarySubChange<K,V> extends Object
ObservableSetMultimap
. .Constructor and Description |
---|
ElementarySubChange(K key,
Set<? extends V> removedValues,
Set<? extends V> addedValues)
Constructs a new
SetMultimapListenerHelper.ElementarySubChange with the given
values. |
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Returns the key that was modified in this elementary sub-change, i.e.
|
Set<V> |
getValuesAdded()
Returns the values added by this elementary sub-change.
|
Set<V> |
getValuesRemoved()
Returns the values removed by this elementary sub-change.
|
String |
toString() |
boolean |
wasAdded()
Indicates whether values were added by this elementary sub-change.
|
boolean |
wasRemoved()
Indicates whether values were removed by this elementary sub-change.
|
public ElementarySubChange(K key, Set<? extends V> removedValues, Set<? extends V> addedValues)
SetMultimapListenerHelper.ElementarySubChange
with the given
values.key
- The key to which the change is related.removedValues
- The values removed by the change.addedValues
- The values added by the change.public K getKey()
public Set<V> getValuesAdded()
public Set<V> getValuesRemoved()
public boolean wasAdded()
true
if values were added, false
otherwise.public boolean wasRemoved()
true
if values were removed, false
otherwise.Copyright (c) 2014 itemis AG and others. All rights reserved.