K - key typeV - value typepublic class MapEvent<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MapEvent.Type
MapEvent type.
|
| Constructor and Description |
|---|
MapEvent(String name,
MapEvent.Type type,
K key,
Versioned<V> value)
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.
|
String |
toString() |
MapEvent.Type |
type()
Returns the type of the event.
|
Versioned<V> |
value()
Returns the value associated with this event.
|
public MapEvent(String name, MapEvent.Type type, K key, Versioned<V> value)
name - map nametype - type of eventkey - key the event concernsvalue - value key is mapped topublic String name()
public MapEvent.Type type()
public K key()
public Versioned<V> value()
Copyright © 2015. All rights reserved.