K - key typeV - value typepublic class MultimapEvent<K,V> extends AbstractEvent<MultimapEvent.Type,K>
| Modifier and Type | Class and Description |
|---|---|
static class |
MultimapEvent.Type
MultimapEvent type.
|
| Constructor and Description |
|---|
MultimapEvent(MultimapEvent.Type type,
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.
|
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() |
subject, time, typepublic MultimapEvent(MultimapEvent.Type type, K key, V newValue, V oldValue)
type - the event typekey - key the event concernsnewValue - new value key is mapped tooldValue - previous value that was mapped to the keypublic K key()
public V newValue()
AbstractEvent.type() returns REMOVE, this method
will return null.public V oldValue()
AbstractEvent.type() returns INSERT, this method will
return null.public String toString()
toString in class AbstractEvent<MultimapEvent.Type,K>Copyright © 2013–2018. All rights reserved.