|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmirrormap.collections.MapListenerAdapter<K,V>
K - The key type for the map this adapter is attached toV - The value type for the map this adapter is attached topublic class MapListenerAdapter<K,V>
Implements no-op methods for the IMapListener
| Constructor Summary | |
|---|---|
MapListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
didAdd(K key,
V value)
Called after a new entry has been added to the underlying Map of
a NotifyingMap. |
void |
didRemove(K key,
V value)
Called after an entry in the underlying Map of a
NotifyingMap is removed |
void |
didUpdate(K key,
V oldValue,
V newValue)
Called after an entry in the underlying Map of a
NotifyingMap has been updated. |
void |
willAdd(K key,
V value)
Called before a new entry is added to the underlying Map of a
NotifyingMap. |
void |
willRemove(K key)
Called before an entry in the underlying Map of a
NotifyingMap is removed |
void |
willUpdate(K key,
V currentValue,
V newValue)
Called before an entry in the underlying Map of a
NotifyingMap is updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapListenerAdapter()
| Method Detail |
|---|
public void didAdd(K key,
V value)
IMapListenerMap of
a NotifyingMap.
didAdd in interface IMapListener<K,V>key - the map entry keyvalue - the value
public void didRemove(K key,
V value)
IMapListenerMap of a
NotifyingMap is removed
didRemove in interface IMapListener<K,V>key - the map entry key that was removedvalue - the value of the associated key that was removed
public void didUpdate(K key,
V oldValue,
V newValue)
IMapListenerMap of a
NotifyingMap has been updated.
didUpdate in interface IMapListener<K,V>key - the map entry keyoldValue - the previous value associated with the keynewValue - the current value that is associated with the key (this
replaced the oldValue)
public void willAdd(K key,
V value)
IMapListenerMap of a
NotifyingMap.
willAdd in interface IMapListener<K,V>key - the map entry keyvalue - the valuepublic void willRemove(K key)
IMapListenerMap of a
NotifyingMap is removed
willRemove in interface IMapListener<K,V>key - the map entry key that will be removed
public void willUpdate(K key,
V currentValue,
V newValue)
IMapListenerMap of a
NotifyingMap is updated.
willUpdate in interface IMapListener<K,V>key - the map entry keycurrentValue - the current value associated with the key (this will be
replaced with the newValue)newValue - the new value that will be associated with the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||