K
- the type of keyV
- the type of valuepublic class ObservableMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
Map
and notifies
ObservableMap.MapChangeListener
of changes for individual
change operations.Modifier and Type | Class and Description |
---|---|
static interface |
ObservableMap.MapChangeListener<K,V>
The listener interface for receiving map change events.
|
Constructor and Description |
---|
ObservableMap()
Instantiates a new observable map.
|
ObservableMap(java.util.Map<K,V> map,
ObservableMap.MapChangeListener<K,V> listener)
Instantiates a new observable map.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object key) |
java.util.Map<K,V> |
getDelegate()
Gets the delegating map instance.
|
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
remove(java.lang.Object key) |
void |
setDelegate(java.util.Map<K,V> delegate)
Sets the delegate.
|
void |
setListener(ObservableMap.MapChangeListener<K,V> listener)
Sets the map change listener.
|
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
public ObservableMap()
public ObservableMap(java.util.Map<K,V> map, ObservableMap.MapChangeListener<K,V> listener)
map
- the delegating maplistener
- the map change listenerpublic boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<K,V> getDelegate()
public void setDelegate(java.util.Map<K,V> delegate)
delegate
- the delegatepublic void setListener(ObservableMap.MapChangeListener<K,V> listener)
listener
- the listener