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
An
ObservableSetMultimap is a specific SetMultimap that
allows observers to track changes by registering
SetMultimapChangeListeners.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(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, valuesMethods inherited from interface javafx.beans.Observable
addListener, removeListenerMethods inherited from interface com.google.common.collect.SetMultimap
asMap, entries, equals, get, removeAll, replaceValues
-
Method Details
-
replaceAll
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
Adds aSetMultimapChangeListenerto thisObservableSetMultimap. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener- TheSetMultimapChangeListenerto add.
-
removeListener
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.
-