K
- key typeV
- value typepublic class MapEvent<K,V>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MapEvent.Type
MapEvent type.
|
Constructor and Description |
---|
MapEvent(MapEvent.Type type,
java.lang.String name,
K key,
Versioned<V> currentValue,
Versioned<V> previousValue)
Creates a new event object.
|
MapEvent(java.lang.String name,
K key,
Versioned<V> currentValue,
Versioned<V> previousValue)
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.
|
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.
|
java.lang.String |
toString() |
MapEvent.Type |
type()
Returns the type of the event.
|
Versioned<V> |
value()
Deprecated.
1.5.0 Falcon release. Use
newValue() or oldValue() instead. |
public MapEvent(java.lang.String name, K key, Versioned<V> currentValue, Versioned<V> previousValue)
name
- map namekey
- key the event concernscurrentValue
- new value key is mapped topreviousValue
- value that was replacedpublic MapEvent(MapEvent.Type type, java.lang.String name, K key, Versioned<V> currentValue, Versioned<V> previousValue)
type
- event typename
- map namekey
- key the event concernscurrentValue
- new value key is mapped topreviousValue
- value that was replacedpublic java.lang.String name()
public MapEvent.Type type()
public K key()
@Deprecated public Versioned<V> value()
newValue()
or oldValue()
instead.public Versioned<V> newValue()
type()
returns REMOVE
,
this method will return null
.public Versioned<V> oldValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object