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
AnObservableSetMultimap
is a specificSetMultimap
that allows observers to track changes by registeringSetMultimapChangeListeners
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(SetMultimapChangeListener<? super K,? super V> listener)
Adds aSetMultimapChangeListener
to thisObservableSetMultimap
.void
removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes aSetMultimapChangeListener
from thisObservableSetMultimap
.boolean
replaceAll(SetMultimap<? extends K,? extends V> setMultimap)
Replaces all the contents of theObservableSetMultimap
with 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 theObservableSetMultimap
with the contents provided by the givenSetMultimap
.- Parameters:
setMultimap
- TheSetMultimap
whose 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 aSetMultimapChangeListener
to thisObservableSetMultimap
. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener
- TheSetMultimapChangeListener
to add.
-
removeListener
void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
Removes aSetMultimapChangeListener
from 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
- TheSetMultimapChangeListener
to remove.
-
-