K - The key type of the SetMultimap.V - The value type of the SetMultimap.public class ObservableSetMultimapWrapper<K,V> extends com.google.common.collect.ForwardingSetMultimap<K,V> implements ObservableSetMultimap<K,V>
| Constructor and Description |
|---|
ObservableSetMultimapWrapper(com.google.common.collect.SetMultimap<K,V> setMultimap)
Creates a new
ObservableSetMultimap wrapping the given
SetMultimap. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds a
SetMultimapChangeListener to this
ObservableSetMultimap. |
void |
clear() |
protected com.google.common.collect.SetMultimap<K,V> |
delegate() |
protected com.google.common.collect.SetMultimap<K,V> |
delegateCopy()
Returns a copy of the delegate
SetMultimap, which is used for
change notifications. |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
java.lang.Iterable<? extends V> values) |
boolean |
putAll(com.google.common.collect.Multimap<? extends K,? extends V> multimap) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
java.util.Set<V> |
removeAll(java.lang.Object key) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes a
SetMultimapChangeListener from this
ObservableSetMultimap. |
boolean |
replaceAll(com.google.common.collect.SetMultimap<? extends K,? extends V> setMultimap)
Replaces all the contents of the
ObservableSetMultimap with the
contents provided by the given SetMultimap. |
java.util.Set<V> |
replaceValues(K key,
java.lang.Iterable<? extends V> values) |
asMap, containsEntry, containsKey, containsValue, equals, hashCode, isEmpty, keys, keySet, size, valuespublic ObservableSetMultimapWrapper(com.google.common.collect.SetMultimap<K,V> setMultimap)
ObservableSetMultimap wrapping the given
SetMultimap.setMultimap - The SetMultimap to wrap into the newly created
ObservableSetMultimapWrapper.public void addListener(javafx.beans.InvalidationListener listener)
addListener in interface javafx.beans.Observablepublic void addListener(SetMultimapChangeListener<? super K,? super V> listener)
ObservableSetMultimapSetMultimapChangeListener to this
ObservableSetMultimap. If the same listener is registered more
than once, it will be notified more than once.addListener in interface ObservableSetMultimap<K,V>listener - The SetMultimapChangeListener to add.public void clear()
protected com.google.common.collect.SetMultimap<K,V> delegateCopy()
SetMultimap, which is used for
change notifications.SetMultimap.public boolean remove(java.lang.Object key,
java.lang.Object value)
public java.util.Set<V> removeAll(java.lang.Object key)
public void removeListener(javafx.beans.InvalidationListener listener)
removeListener in interface javafx.beans.Observablepublic void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
ObservableSetMultimapSetMultimapChangeListener from this
ObservableSetMultimap. Will do nothing if the listener was not
attached to this ObservableSetMultimap. If it was added more than
once, then only the first occurrence will be removed.removeListener in interface ObservableSetMultimap<K,V>listener - The SetMultimapChangeListener to remove.public boolean replaceAll(com.google.common.collect.SetMultimap<? extends K,? extends V> setMultimap)
ObservableSetMultimapObservableSetMultimap with the
contents provided by the given SetMultimap.replaceAll in interface ObservableSetMultimap<K,V>setMultimap - The SetMultimap whose values should be used to replace
those of this ObservableSetMultimap.Copyright (c) 2014 itemis AG and others. All rights reserved.