K - type of the keys to the mapV - type of the values in the mappublic abstract class ComputedObservableMap<K,V> extends AbstractObservableMap<K,V>
| Constructor and Description |
|---|
ComputedObservableMap(IObservableSet<K> keySet) |
ComputedObservableMap(IObservableSet<K> keySet,
java.lang.Object valueType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(java.lang.Object key) |
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 abstract V |
doGet(K key) |
protected abstract V |
doPut(K key,
V value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
protected void |
fireSingleChange(K key,
V oldValue,
V newValue) |
protected void |
firstListenerAdded() |
V |
get(java.lang.Object key) |
java.lang.Object |
getKeyType()
Returns the element type for the
keyset of this
observable map, or null if the keyset is untyped. |
java.lang.Object |
getValueType()
Returns the element type for the
values of this
observable map, or null if the values collection is untyped. |
protected abstract void |
hookListener(K addedKey) |
protected void |
init()
Deprecated.
Subclasses are no longer required to call this method.
|
boolean |
isStale()
Returns whether the state of this observable is stale and is expected to
change soon.
|
java.util.Set<K> |
keySet() |
protected void |
lastListenerRemoved() |
V |
put(K key,
V value) |
V |
remove(java.lang.Object key) |
protected abstract void |
unhookListener(K removedKey) |
addChangeListener, addDisposeListener, addMapChangeListener, addStaleListener, checkRealm, fireChange, fireMapChange, fireStale, getRealm, hasListeners, isDisposed, removeChangeListener, removeDisposeListener, removeMapChangeListener, removeStaleListener, setStaleclear, clone, containsValue, equals, hashCode, isEmpty, putAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsValue, equals, hashCode, isEmpty, size, valuespublic ComputedObservableMap(IObservableSet<K> keySet)
keySet - public ComputedObservableMap(IObservableSet<K> keySet, java.lang.Object valueType)
keySet - valueType - @Deprecated protected void init()
protected void firstListenerAdded()
firstListenerAdded in class AbstractObservableMap<K,V>protected void lastListenerRemoved()
lastListenerRemoved in class AbstractObservableMap<K,V>public java.lang.Object getKeyType()
IObservableMapkeyset of this
observable map, or null if the keyset is untyped.getKeyType in interface IObservableMap<K,V>getKeyType in class AbstractObservableMap<K,V>keyset of this
observable map, or null if the keyset is untyped.public java.lang.Object getValueType()
IObservableMapvalues of this
observable map, or null if the values collection is untyped.getValueType in interface IObservableMap<K,V>getValueType in class AbstractObservableMap<K,V>values of this
observable map, or null if the values collection is
untyped.public V remove(java.lang.Object key)
public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<K,V>containsKey in interface IObservableMap<K,V>containsKey in class java.util.AbstractMap<K,V>public java.util.Set<K> keySet()
public final V get(java.lang.Object key)
protected abstract void unhookListener(K removedKey)
removedKey - protected abstract void hookListener(K addedKey)
addedKey - protected abstract V doPut(K key, V value)
key - value - public boolean isStale()
IObservableisStale in interface IObservableisStale in class AbstractObservableMap<K,V>public void dispose()
IObservabledispose in interface IObservabledispose in class AbstractObservableMap<K,V>
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.