Interface ObservableSetMultimap<K,V>
-
- Type Parameters:
K- The key type of theObservableSetMultimap.V- The value type of theObservableSetMultimap.
- All Superinterfaces:
Multimap<K,V>,javafx.beans.Observable,SetMultimap<K,V>
- All Known Subinterfaces:
ObservableSetMultimapValue<K,V>,WritableSetMultimapValue<K,V>
- All Known Implementing Classes:
ReadOnlySetMultimapProperty,ReadOnlySetMultimapPropertyBase,ReadOnlySetMultimapWrapper,SetMultimapBinding,SetMultimapExpression,SetMultimapProperty,SetMultimapPropertyBase,SimpleSetMultimapProperty
public interface ObservableSetMultimap<K,V> extends SetMultimap<K,V>, javafx.beans.Observable
AnObservableSetMultimapis a specificSetMultimapthat allows observers to track changes by registeringSetMultimapChangeListeners.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(SetMultimapChangeListener<? super K,? super V> listener)Adds aSetMultimapChangeListenerto thisObservableSetMultimap.voidremoveListener(SetMultimapChangeListener<? super K,? super V> listener)Removes aSetMultimapChangeListenerfrom thisObservableSetMultimap.booleanreplaceAll(SetMultimap<? extends K,? extends V> setMultimap)Replaces all the contents of theObservableSetMultimapwith the contents provided by the givenSetMultimap.-
Methods inherited from interface com.google.common.collect.Multimap
clear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, values
-
Methods inherited from interface com.google.common.collect.SetMultimap
asMap, entries, equals, get, removeAll, replaceValues
-
-
-
-
Method Detail
-
replaceAll
boolean replaceAll(SetMultimap<? extends K,? extends V> setMultimap)
Replaces all the contents of theObservableSetMultimapwith the contents provided by the givenSetMultimap.- Parameters:
setMultimap- TheSetMultimapwhose values should be used to replace those of thisObservableSetMultimap.- Returns:
- Whether this map was changed through the replace operation.
-
addListener
void addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds aSetMultimapChangeListenerto thisObservableSetMultimap. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener- TheSetMultimapChangeListenerto add.
-
removeListener
void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes aSetMultimapChangeListenerfrom thisObservableSetMultimap. Will do nothing if the listener was not attached to thisObservableSetMultimap. If it was added more than once, then only the first occurrence will be removed.- Parameters:
listener- TheSetMultimapChangeListenerto remove.
-
-