|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
vitro.util.ObservableMap<K,V>
public class ObservableMap<K,V>
An ObservableCollection implementing the Map interface by way of extending AbstractMap and wrapping an internal Map.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ObservableMap()
Create a new, empty Map. |
|
ObservableMap(Map<? extends K,? extends V> c)
Create a new Map with the same elements as another Map. |
|
ObservableMap(Map<? extends K,? extends V> c,
ObservableCollection host)
Create a new Map with the same elements as another Map. |
Method Summary | |
---|---|
void |
addObserver(CollectionObserver<Map.Entry<K,V>> o)
Register a CollectionObserver with this Collection. |
Set<Map.Entry<K,V>> |
entrySet()
|
V |
put(K key,
V value)
|
Map<K,V> |
store()
Obtain a reference to the backing store used by this Map. |
Methods inherited from class java.util.AbstractMap |
---|
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObservableMap()
public ObservableMap(Map<? extends K,? extends V> c)
c
- the source Map.public ObservableMap(Map<? extends K,? extends V> c, ObservableCollection host)
c
- the source Collection.host
- the host ObservableCollectionMethod Detail |
---|
public void addObserver(CollectionObserver<Map.Entry<K,V>> o)
ObservableCollection
addObserver
in interface ObservableCollection<Map.Entry<K,V>>
o
- the CollectionObserver to register.public Map<K,V> store()
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
entrySet
in class AbstractMap<K,V>
public V put(K key, V value)
put
in interface Map<K,V>
put
in class AbstractMap<K,V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |