K - map key typeV - map value typepublic class ObservableMapImpl<K,V> extends AbstractObservableMap<K,V>
preXxx methods and
empty map change events in postXxx methods.
Observable map listeners may query the source of the events to determine
what may or may not have changed due to the event.AbstractObservableMap.ObservableEntrySet, AbstractObservableMap.ObservableKeySet, AbstractObservableMap.ObservableValues| Constructor and Description |
|---|
ObservableMapImpl(Map<K,V> map)
Create a new observable decorator for the specified
map.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
postClear()
Notify subclasses the
clear method has just been
called on the wrapped map. |
protected void |
postEntrySetClear()
Notify subclasses the
clear method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postEntrySetIteratorRemove()
Notify subclasses the
remove method has just been
called on the entrySet view iterator for the wrapped map. |
protected void |
postEntrySetRemove(Object value)
Notify subclasses the
remove method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postEntrySetRemoveAll(Collection<?> entrySet)
Notify subclasses the
removeAll method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postEntrySetRetainAll(Collection<?> entrySet)
Notify subclasses the
clear method has just been
called on the entrySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetClear()
Notify subclasses the
clear method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetIteratorRemove()
Notify subclasses the
remove method has just been
called on the keySet view iterator for the wrapped map. |
protected void |
postKeySetRemove(Object value)
Notify subclasses the
remove method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetRemoveAll(Collection<?> keySet)
Notify subclasses the
removeAll method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postKeySetRetainAll(Collection<?> keySet)
Notify subclasses the
clear method has just been
called on the keySet view for the wrapped map with the specified parameter. |
protected void |
postMapEntrySetValue(V value)
Notify subclasses the
setValue method has just been
called on a map entry from the entrySet view iterator for the wrapped map. |
protected void |
postPut(K key,
V value)
Notify subclasses the
put method has just been
called on the wrapped map with the specified parameters. |
protected void |
postPutAll(Map<? extends K,? extends V> map)
Notify subclasses the
putAll method has just been
called on the wrapped map with the specified parameter. |
protected void |
postRemove(Object key)
Notify subclasses the
remove method has just been
called on the wrapped map with the specified parameter. |
protected void |
postValuesClear()
Notify subclasses the
clear method has just been
called on the values view for the wrapped map with the specified parameter. |
protected void |
postValuesIteratorRemove()
Notify subclasses the
remove method has just been
called on the values view iterator for the wrapped map. |
protected void |
postValuesRemove(Object value)
Notify subclasses the
remove method has just been
called on the values view for the wrapped map with the specified parameter. |
protected void |
postValuesRemoveAll(Collection<?> values)
Notify subclasses the
removeAll method has just been
called on the values view for the wrapped map with the specified parameter. |
protected void |
postValuesRetainAll(Collection<?> values)
Notify subclasses the
clear method has just been
called on the values view for the wrapped map with the specified parameter. |
protected boolean |
preClear()
Notify subclasses the
clear method is about to
be called on the wrapped map. |
protected boolean |
preEntrySetClear()
Notify subclasses the
clear method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preEntrySetIteratorRemove()
Notify subclasses the
remove method is about to
be called on the entrySet view iterator for the wrapped map. |
protected boolean |
preEntrySetRemove(Object value)
Notify subclasses the
remove method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preEntrySetRemoveAll(Collection<?> entrySet)
Notify subclasses the
removeAll method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preEntrySetRetainAll(Collection<?> entrySet)
Notify subclasses the
retainAll method is about to
be called on the entrySet view for the wrapped map. |
protected boolean |
preKeySetClear()
Notify subclasses the
clear method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preKeySetIteratorRemove()
Notify subclasses the
remove method is about to
be called on the keySet view iterator for the wrapped map. |
protected boolean |
preKeySetRemove(Object value)
Notify subclasses the
remove method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preKeySetRemoveAll(Collection<?> keySet)
Notify subclasses the
removeAll method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preKeySetRetainAll(Collection<?> keySet)
Notify subclasses the
retainAll method is about to
be called on the keySet view for the wrapped map. |
protected boolean |
preMapEntrySetValue(V value)
Notify subclasses the
setValue method is about to
be called on a map entry from the entrySet view iterator for the wrapped map. |
protected boolean |
prePut(K key,
V value)
Notify subclasses the
put method is about to
be called on the wrapped map with the specified parameters. |
protected boolean |
prePutAll(Map<? extends K,? extends V> map)
Notify subclasses the
putAll method is about to
be called on the wrapped map with the specified parameter. |
protected boolean |
preRemove(Object key)
Notify subclasses the
remove method is about to
be called on the wrapped map with the specified parameter. |
protected boolean |
preValuesClear()
Notify subclasses the
clear method is about to
be called on the values view for the wrapped map. |
protected boolean |
preValuesIteratorRemove()
Notify subclasses the
remove method is about to
be called on the values view iterator for the wrapped map. |
protected boolean |
preValuesRemove(Object value)
Notify subclasses the
remove method is about to
be called on the values view for the wrapped map. |
protected boolean |
preValuesRemoveAll(Collection<?> values)
Notify subclasses the
removeAll method is about to
be called on the values view for the wrapped map. |
protected boolean |
preValuesRetainAll(Collection<?> values)
Notify subclasses the
retainAll method is about to
be called on the values view for the wrapped map. |
addMapChangeListener, addVetoableMapChangeListener, clear, entrySet, fireMapChanged, fireMapChanged, fireMapWillChange, fireMapWillChange, getMapChangeListenerCount, getMapChangeListeners, getObservableMapChangeSupport, getVetoableMapChangeListenerCount, getVetoableMapChangeListeners, keySet, put, putAll, remove, removeMapChangeListener, removeVetoableMapChangeListener, valuescontainsKey, containsValue, equals, get, getMap, hashCode, isEmpty, sizeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcontainsKey, containsValue, equals, get, hashCode, isEmpty, sizeprotected boolean preClear()
clear method is about to
be called on the wrapped map.
Return true to proceed with the change.preClear in class AbstractObservableMap<K,V>protected void postClear()
clear method has just been
called on the wrapped map.postClear in class AbstractObservableMap<K,V>protected boolean prePut(K key, V value)
put method is about to
be called on the wrapped map with the specified parameters.
Return true to proceed with the change.prePut in class AbstractObservableMap<K,V>key - put method key parametervalue - put method value parameterprotected void postPut(K key, V value)
put method has just been
called on the wrapped map with the specified parameters.postPut in class AbstractObservableMap<K,V>key - put method key parametervalue - put method value parameterprotected boolean prePutAll(Map<? extends K,? extends V> map)
putAll method is about to
be called on the wrapped map with the specified parameter.
Return true to proceed with the change.prePutAll in class AbstractObservableMap<K,V>map - putAll method parameterprotected void postPutAll(Map<? extends K,? extends V> map)
putAll method has just been
called on the wrapped map with the specified parameter.postPutAll in class AbstractObservableMap<K,V>map - putAll method parameterprotected boolean preRemove(Object key)
remove method is about to
be called on the wrapped map with the specified parameter.
Return true to proceed with the change.preRemove in class AbstractObservableMap<K,V>key - remove method parameterprotected void postRemove(Object key)
remove method has just been
called on the wrapped map with the specified parameter.postRemove in class AbstractObservableMap<K,V>key - remove method parameterprotected boolean preValuesClear()
clear method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.preValuesClear in class AbstractObservableMap<K,V>protected void postValuesClear()
clear method has just been
called on the values view for the wrapped map with the specified parameter.postValuesClear in class AbstractObservableMap<K,V>protected boolean preValuesRemove(Object value)
remove method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.preValuesRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected void postValuesRemove(Object value)
remove method has just been
called on the values view for the wrapped map with the specified parameter.postValuesRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected boolean preValuesRemoveAll(Collection<?> values)
removeAll method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.preValuesRemoveAll in class AbstractObservableMap<K,V>values - removeAll method parameterprotected void postValuesRemoveAll(Collection<?> values)
removeAll method has just been
called on the values view for the wrapped map with the specified parameter.postValuesRemoveAll in class AbstractObservableMap<K,V>values - removeAll method parameterprotected boolean preValuesRetainAll(Collection<?> values)
retainAll method is about to
be called on the values view for the wrapped map.
Return true to proceed with the change.preValuesRetainAll in class AbstractObservableMap<K,V>values - retainAll method parameterprotected void postValuesRetainAll(Collection<?> values)
clear method has just been
called on the values view for the wrapped map with the specified parameter.postValuesRetainAll in class AbstractObservableMap<K,V>values - retainAll method parameterprotected boolean preValuesIteratorRemove()
remove method is about to
be called on the values view iterator for the wrapped map.
Return true to proceed with the change.preValuesIteratorRemove in class AbstractObservableMap<K,V>protected void postValuesIteratorRemove()
remove method has just been
called on the values view iterator for the wrapped map.postValuesIteratorRemove in class AbstractObservableMap<K,V>protected boolean preKeySetClear()
clear method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.preKeySetClear in class AbstractObservableMap<K,V>protected void postKeySetClear()
clear method has just been
called on the keySet view for the wrapped map with the specified parameter.postKeySetClear in class AbstractObservableMap<K,V>protected boolean preKeySetRemove(Object value)
remove method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.preKeySetRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected void postKeySetRemove(Object value)
remove method has just been
called on the keySet view for the wrapped map with the specified parameter.postKeySetRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected boolean preKeySetRemoveAll(Collection<?> keySet)
removeAll method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.preKeySetRemoveAll in class AbstractObservableMap<K,V>keySet - removeAll method parameterprotected void postKeySetRemoveAll(Collection<?> keySet)
removeAll method has just been
called on the keySet view for the wrapped map with the specified parameter.postKeySetRemoveAll in class AbstractObservableMap<K,V>keySet - removeAll method parameterprotected boolean preKeySetRetainAll(Collection<?> keySet)
retainAll method is about to
be called on the keySet view for the wrapped map.
Return true to proceed with the change.preKeySetRetainAll in class AbstractObservableMap<K,V>keySet - retainAll method parameterprotected void postKeySetRetainAll(Collection<?> keySet)
clear method has just been
called on the keySet view for the wrapped map with the specified parameter.postKeySetRetainAll in class AbstractObservableMap<K,V>keySet - retainAll method parameterprotected boolean preKeySetIteratorRemove()
remove method is about to
be called on the keySet view iterator for the wrapped map.
Return true to proceed with the change.preKeySetIteratorRemove in class AbstractObservableMap<K,V>protected void postKeySetIteratorRemove()
remove method has just been
called on the keySet view iterator for the wrapped map.postKeySetIteratorRemove in class AbstractObservableMap<K,V>protected boolean preEntrySetClear()
clear method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.preEntrySetClear in class AbstractObservableMap<K,V>protected void postEntrySetClear()
clear method has just been
called on the entrySet view for the wrapped map with the specified parameter.postEntrySetClear in class AbstractObservableMap<K,V>protected boolean preEntrySetRemove(Object value)
remove method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.preEntrySetRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected void postEntrySetRemove(Object value)
remove method has just been
called on the entrySet view for the wrapped map with the specified parameter.postEntrySetRemove in class AbstractObservableMap<K,V>value - remove method parameterprotected boolean preEntrySetRemoveAll(Collection<?> entrySet)
removeAll method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.preEntrySetRemoveAll in class AbstractObservableMap<K,V>entrySet - removeAll method parameterprotected void postEntrySetRemoveAll(Collection<?> entrySet)
removeAll method has just been
called on the entrySet view for the wrapped map with the specified parameter.postEntrySetRemoveAll in class AbstractObservableMap<K,V>entrySet - removeAll method parameterprotected boolean preEntrySetRetainAll(Collection<?> entrySet)
retainAll method is about to
be called on the entrySet view for the wrapped map.
Return true to proceed with the change.preEntrySetRetainAll in class AbstractObservableMap<K,V>entrySet - retainAll method parameterprotected void postEntrySetRetainAll(Collection<?> entrySet)
clear method has just been
called on the entrySet view for the wrapped map with the specified parameter.postEntrySetRetainAll in class AbstractObservableMap<K,V>entrySet - retainAll method parameterprotected boolean preEntrySetIteratorRemove()
remove method is about to
be called on the entrySet view iterator for the wrapped map.
Return true to proceed with the change.preEntrySetIteratorRemove in class AbstractObservableMap<K,V>protected void postEntrySetIteratorRemove()
remove method has just been
called on the entrySet view iterator for the wrapped map.postEntrySetIteratorRemove in class AbstractObservableMap<K,V>protected boolean preMapEntrySetValue(V value)
setValue method is about to
be called on a map entry from the entrySet view iterator for the wrapped map.
Return true to proceed with the change.preMapEntrySetValue in class AbstractObservableMap<K,V>value - setValue method parameterprotected void postMapEntrySetValue(V value)
setValue method has just been
called on a map entry from the entrySet view iterator for the wrapped map.postMapEntrySetValue in class AbstractObservableMap<K,V>value - setValue method parameterCopyright (c) 2003-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).