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
A event representing a change of values in an
Map.- Since:
- 1.4
-
Constructor Details
-
MapChangeEvent
Creates a new event.- Parameters:
source- the source on which the change was applied.key- the key that has is value changed.oldValue- the old valuenewValue- the new value
-
-
Method Details
-
getSource
Gets the source on which the change was applied.- Returns:
- the source
-
getKey
Gets the key that has is value changed.- Returns:
- the key
-
getOldValue
Gets the old value.- Returns:
- old value
-
getNewValue
Gets the new value.- Returns:
- new value
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-