public abstract class ComputedObservableMap extends AbstractObservableMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ComputedObservableMap(IObservableSet keySet) |
ComputedObservableMap(IObservableSet keySet,
Object valueType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(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 Object |
doGet(Object key) |
protected abstract Object |
doPut(Object key,
Object value) |
Set |
entrySet() |
protected void |
fireSingleChange(Object key,
Object oldValue,
Object newValue) |
protected void |
firstListenerAdded() |
Object |
get(Object key) |
Object |
getKeyType()
Returns the element type for the
keyset of this
observable map, or null if the keyset is untyped. |
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(Object 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.
|
Set |
keySet() |
protected void |
lastListenerRemoved() |
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
protected abstract void |
unhookListener(Object 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 keySet)
keySet - public ComputedObservableMap(IObservableSet keySet, Object valueType)
keySet - valueType - protected void init()
protected void firstListenerAdded()
firstListenerAdded in class AbstractObservableMapprotected void lastListenerRemoved()
lastListenerRemoved in class AbstractObservableMapprotected final void fireSingleChange(Object key, Object oldValue, Object newValue)
public Object getKeyType()
IObservableMapkeyset of this
observable map, or null if the keyset is untyped.getKeyType in interface IObservableMapgetKeyType in class AbstractObservableMapkeyset of this
observable map, or null if the keyset is untyped.public Object getValueType()
IObservableMapvalues of this
observable map, or null if the values collection is untyped.getValueType in interface IObservableMapgetValueType in class AbstractObservableMapvalues of this
observable map, or null if the values collection is
untyped.public Object remove(Object key)
remove in interface Mapremove in interface IObservableMapremove in class AbstractMappublic boolean containsKey(Object key)
containsKey in interface MapcontainsKey in interface IObservableMapcontainsKey in class AbstractMappublic Set entrySet()
entrySet in interface MapentrySet in interface IObservableMapentrySet in class AbstractMappublic Set keySet()
keySet in interface MapkeySet in interface IObservableMapkeySet in class AbstractMappublic final Object get(Object key)
get in interface Mapget in interface IObservableMapget in class AbstractMappublic final Object put(Object key, Object value)
put in interface Mapput in interface IObservableMapput in class AbstractMapprotected abstract void unhookListener(Object removedKey)
removedKey - protected abstract void hookListener(Object addedKey)
addedKey - protected abstract Object doGet(Object key)
key - protected abstract Object doPut(Object key, Object value)
key - value - public boolean isStale()
IObservableisStale in interface IObservableisStale in class AbstractObservableMappublic void dispose()
IObservabledispose in interface IObservabledispose in class AbstractObservableMap
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.