K - The key type of the ObservableSetMultimap.V - The value type of the ObservableSetMultimap.public class UnmodifiableObservableSetMultimapWrapper<K,V> extends java.lang.Object implements ObservableSetMultimap<K,V>
ObservableSetMultimap, wrapping an
ObservableSetMultimap.| Constructor and Description |
|---|
UnmodifiableObservableSetMultimapWrapper(ObservableSetMultimap<K,V> observableSetMultimap)
Creates a new
UnmodifiableObservableSetMultimapWrapper for the
given ObservableSetMultimap. |
| 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. |
java.util.Map<K,java.util.Collection<V>> |
asMap() |
void |
clear() |
boolean |
containsEntry(java.lang.Object key,
java.lang.Object value) |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entries() |
boolean |
equals(java.lang.Object obj) |
java.util.Set<V> |
get(K key) |
int |
hashCode() |
boolean |
isEmpty() |
com.google.common.collect.Multiset<K> |
keys() |
java.util.Set<K> |
keySet() |
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) |
int |
size() |
java.util.Collection<V> |
values() |
public UnmodifiableObservableSetMultimapWrapper(ObservableSetMultimap<K,V> observableSetMultimap)
UnmodifiableObservableSetMultimapWrapper for the
given ObservableSetMultimap.observableSetMultimap - The ObservableSetMultimap to wrap.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 boolean containsEntry(java.lang.Object key,
java.lang.Object value)
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public boolean equals(java.lang.Object obj)
public int hashCode()
public boolean isEmpty()
public com.google.common.collect.Multiset<K> keys()
public java.util.Set<K> keySet()
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.