K - type of the keys in the mapV - type of the values in the mappublic class BidiObservableMap<K,V> extends DecoratingObservableMap<K,V>
This class is thread safe. All state accessing methods must be invoked from
the current realm. Methods for adding and removing
listeners may be invoked from any thread.
| Constructor and Description |
|---|
BidiObservableMap(IObservableMap<K,V> wrappedMap)
Constructs a BidirectionalMap tracking the given observable map.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addListener(java.lang.Object listenerType,
IObservablesListener listener) |
protected java.lang.Object |
clone() |
boolean |
containsValue(java.lang.Object value) |
void |
dispose()
Disposes of this observable object, removing all listeners registered
with this object, and all listeners this object might have registered on
other objects.
|
protected void |
fireEvent(ObservableEvent event) |
protected void |
firstListenerAdded() |
java.util.Set<K> |
getKeys(java.lang.Object value)
Returns the Set of keys that currently map to the given value.
|
Realm |
getRealm() |
protected void |
handleMapChange(MapChangeEvent<? extends K,? extends V> event)
Called whenever a MapChangeEvent is received from the decorated
observable.
|
protected boolean |
hasListeners() |
protected void |
lastListenerRemoved() |
protected void |
removeListener(java.lang.Object listenerType,
IObservablesListener listener) |
addMapChangeListener, clear, containsKey, entrySet, equals, fireChange, fireMapChange, get, getKeyType, getValueType, hashCode, isEmpty, keySet, put, putAll, remove, removeMapChangeListener, size, toString, valuesgetDecorated, getterCalled, handleStaleEvent, isStaleaddChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAlladdChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListenerpublic BidiObservableMap(IObservableMap<K,V> wrappedMap)
wrappedMap - the observable map to trackprotected void firstListenerAdded()
firstListenerAdded in class DecoratingObservableMap<K,V>protected void lastListenerRemoved()
lastListenerRemoved in class DecoratingObservableMap<K,V>protected void handleMapChange(MapChangeEvent<? extends K,? extends V> event)
DecoratingObservableMaphandleMapChange in class DecoratingObservableMap<K,V>event - the change event received from the decorated observablepublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<K,V>containsValue in interface IObservableMap<K,V>containsValue in class DecoratingObservableMap<K,V>public java.util.Set<K> getKeys(java.lang.Object value)
value - the value associated with the keys in the returned Set.public void dispose()
IObservabledispose in interface IObservabledispose in class DecoratingObservableMap<K,V>protected void addListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected void removeListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
public Realm getRealm()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.