K
- The key type of the ObservableSetMultimap
.V
- The value type of the ObservableSetMultimap
.public static class SetMultimapListenerHelper.ElementarySubChange<K,V>
extends java.lang.Object
ObservableSetMultimap
. .Constructor and Description |
---|
ElementarySubChange(K key,
java.util.Set<? extends V> removedValues,
java.util.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.
|
java.util.Set<V> |
getValuesAdded()
Returns the values added by this elementary sub-change.
|
java.util.Set<V> |
getValuesRemoved()
Returns the values removed by this elementary sub-change.
|
java.lang.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, java.util.Set<? extends V> removedValues, java.util.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 java.util.Set<V> getValuesAdded()
public java.util.Set<V> getValuesRemoved()
public java.lang.String toString()
toString
in class java.lang.Object
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.