K - key typeV - value typepublic class MultimapEvent<K,V>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MultimapEvent.Type
MultimapEvent type.
|
| Constructor and Description |
|---|
MultimapEvent(java.lang.String name,
K key,
V newValue,
V oldValue)
Creates a new event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
K |
key()
Returns the key this event concerns.
|
java.lang.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.
|
java.lang.String |
toString() |
MultimapEvent.Type |
type()
Returns the type of the event.
|
public java.lang.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.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object