Interface IObservableMap<K,V>
-
- Type Parameters:
K- type of the keys in the mapV- type of the values in the map
- All Superinterfaces:
IObservable,Map<K,V>
- All Known Implementing Classes:
AbstractObservableMap,BidiObservableMap,BidirectionalMap,CompositeMap,ComputedObservableMap,DecoratingObservableMap,ObservableMap,WritableMap
public interface IObservableMap<K,V> extends Map<K,V>, IObservable
Observable Map.- Since:
- 1.1
- See Also:
AbstractObservableMap,ObservableMap- Restriction:
- This interface is not intended to be implemented by clients. Clients should instead subclass one of the classes that implement this interface. Note that direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMapChangeListener(IMapChangeListener<? super K,? super V> listener)booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()booleanequals(Object o)Vget(Object key)ObjectgetKeyType()Returns the element type for thekeysetof this observable map, ornullif the keyset is untyped.ObjectgetValueType()Returns the element type for thevaluesof this observable map, ornullif the values collection is untyped.inthashCode()booleanisEmpty()Set<K>keySet()Vput(K key, V value)Vremove(Object key)voidremoveMapChangeListener(IMapChangeListener<? super K,? super V> listener)intsize()Collection<V>values()-
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getKeyType
Object getKeyType()
Returns the element type for thekeysetof this observable map, ornullif the keyset is untyped.- Returns:
- the element type for the
keysetof this observable map, ornullif the keyset is untyped. - Since:
- 1.2
-
getValueType
Object getValueType()
Returns the element type for thevaluesof this observable map, ornullif the values collection is untyped.- Returns:
- the element type for the
valuesof this observable map, ornullif the values collection is untyped. - Since:
- 1.2
-
addMapChangeListener
void addMapChangeListener(IMapChangeListener<? super K,? super V> listener)
- Parameters:
listener-
-
removeMapChangeListener
void removeMapChangeListener(IMapChangeListener<? super K,? super V> listener)
- Parameters:
listener-
-
containsKey
boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>- "TrackedGetter"
-
containsValue
boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>- "TrackedGetter"
-
equals
boolean equals(Object o)
-
-