K - key typeV - value typepublic class AtomicMapEvent<K,V> extends AbstractEvent<AtomicMapEvent.Type,K>
| Modifier and Type | Class and Description |
|---|---|
static class |
AtomicMapEvent.Type
MapEvent type.
|
| Constructor and Description |
|---|
AtomicMapEvent(AtomicMapEvent.Type type,
K key,
Versioned<V> currentValue,
Versioned<V> previousValue)
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.
|
Versioned<V> |
newValue()
Returns the new value in the map associated with the key.
|
Versioned<V> |
oldValue()
Returns the value associated with the key, before it was updated.
|
String |
toString() |
subject, time, typepublic K key()
public Versioned<V> newValue()
AbstractEvent.type() returns REMOVE, this method
will return null.public Versioned<V> oldValue()
public String toString()
toString in class AbstractEvent<AtomicMapEvent.Type,K>Copyright © 2013–2018. All rights reserved.