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
Observable Map.
- Since:
- 1.1
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
Clients should instead subclass one of the classes that
implement this interface.
Authors of extensions to the databinding framework may extend this interface and indirectly implement it, but if doing so must also extend one of the framework classes. (Use an API problem filter to suppress the resulting warning.)
Direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapChangeListener
(IMapChangeListener<? super K, ? super V> listener) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
Returns the element type for thekeyset
of this observable map, ornull
if the keyset is untyped.Returns the element type for thevalues
of this observable map, ornull
if the values collection is untyped.int
hashCode()
boolean
isEmpty()
keySet()
void
removeMapChangeListener
(IMapChangeListener<? super K, ? super V> listener) int
size()
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 Details
-
getKeyType
Object getKeyType()Returns the element type for thekeyset
of this observable map, ornull
if the keyset is untyped.- Returns:
- the element type for the
keyset
of this observable map, ornull
if the keyset is untyped. - Since:
- 1.2
-
getValueType
Object getValueType()Returns the element type for thevalues
of this observable map, ornull
if the values collection is untyped.- Returns:
- the element type for the
values
of this observable map, ornull
if the values collection is untyped. - Since:
- 1.2
-
addMapChangeListener
- Parameters:
listener
- the change listener to add; notnull
-
removeMapChangeListener
- Parameters:
listener
- the change listener to remove; notnull
-
size
int size() -
isEmpty
boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - TrackedGetter
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - TrackedGetter
-
get
-
put
-
remove
-
keySet
-
values
Collection<V> values() -
entrySet
-
equals
-
hashCode
int hashCode()
-