Package com.norconex.commons.lang.map
Class MapChangeEvent<K,V>
- java.lang.Object
-
- com.norconex.commons.lang.map.MapChangeEvent<K,V>
-
- Type Parameters:
K- the type of keys maintained by the map we are observingV- the type of mapped values
- All Implemented Interfaces:
Serializable
public class MapChangeEvent<K,V> extends Object implements Serializable
A event representing a change of values in anMap.- Since:
- 1.4
- Author:
- Pascal Essiembre, Pascal Essiembre
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)KgetKey()Gets the key that has is value changed.VgetNewValue()Gets the new value.VgetOldValue()Gets the old value.Map<K,V>getSource()Gets the source on which the change was applied.inthashCode()StringtoString()
-
-
-
Method Detail
-
getSource
public Map<K,V> getSource()
Gets the source on which the change was applied.- Returns:
- the source
-
getKey
public K getKey()
Gets the key that has is value changed.- Returns:
- the key
-
getOldValue
public V getOldValue()
Gets the old value.- Returns:
- old value
-
getNewValue
public V getNewValue()
Gets the new value.- Returns:
- new value
-
-