public final class EventuallyConsistentMapEvent<K,V>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EventuallyConsistentMapEvent.Type |
Constructor and Description |
---|
EventuallyConsistentMapEvent(java.lang.String name,
EventuallyConsistentMapEvent.Type type,
K key,
V value)
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.
|
java.lang.String |
toString() |
EventuallyConsistentMapEvent.Type |
type()
Returns the type of the event.
|
V |
value()
Returns the value associated with this event.
|
public EventuallyConsistentMapEvent(java.lang.String name, EventuallyConsistentMapEvent.Type type, K key, V value)
name
- map nametype
- the type of the eventkey
- the key the event concernsvalue
- the value mapped to the keypublic java.lang.String name()
public EventuallyConsistentMapEvent.Type type()
public K key()
public V value()
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