Class ObservableMap<K,V>

java.lang.Object
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.map.ObservableMap<K,V>
Type Parameters:
K - the type of the keys in this map
V - the type of the values in this map
All Implemented Interfaces:
Map<K,V>, IObservable, IObservableMap<K,V>
Direct Known Subclasses:
BidirectionalMap, CompositeMap, WritableMap

public class ObservableMap<K,V> extends AbstractObservable implements IObservableMap<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.

Since:
1.0
  • Field Details

    • wrappedMap

      protected Map<K,V> wrappedMap
  • Constructor Details

    • ObservableMap

      public ObservableMap(Map<K,V> wrappedMap)
      Parameters:
      wrappedMap - backing store for the map data, used to implement all map operations
    • ObservableMap

      public ObservableMap(Realm realm, Map<K,V> wrappedMap)
      Parameters:
      realm - the realm to use; not null
      wrappedMap - backing store for the map data, used to implement all map operations
  • Method Details