Class ObservableMapImpl<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
org.aksw.commons.collection.observable.ObservableMapImpl<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Map<K,V>, ObservableMap<K,V>

public class ObservableMapImpl<K,V> extends AbstractMap<K,V> implements ObservableMap<K,V>
A map the fires events on changes. Changes are also triggered on operations on the entrySet() and .entrySet().iterater().remove(). Changes are tracked in a CollectionChangedEventImpl instance which implements PropertyChangeEvent. The old value is the this map before the change, and the new value is a view with the pending changes applied. Hence, no needless copying in performed. Event handlers need to to make copies if they want a static snapshot using e.g. new LinkedHashMapinvalid input: '<'>((Mapinvalid input: '<'Foo,Bar>)event.getNewValue()) TODO keySet() entrySt and values() should return ObservableCollections.
Author:
raven