K - key typeV - value typepublic class MultimapEvent<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MultimapEvent.Type
MultimapEvent type.
|
| Constructor and Description |
|---|
MultimapEvent(String name,
K key,
V newValue,
V oldValue)
Creates a new event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
K |
key()
Returns the key this event concerns.
|
String |
name()
Returns the map name.
|
V |
newValue()
Returns the new value in the map associated with the key.
|
V |
oldValue()
Returns the old value that was associated with the key.
|
String |
toString() |
MultimapEvent.Type |
type()
Returns the type of the event.
|
public String name()
public MultimapEvent.Type type()
public K key()
public V newValue()
type() returns REMOVE,
this method will return null.public V oldValue()
type() returns INSERT, this method will return
null.