K - map key typeV - map value typepublic final class MapUpdate<K,V> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MapUpdate.Builder<K,V>
MapUpdate builder. 
 | 
static class  | 
MapUpdate.Type
Type of database update operation. 
 | 
| Constructor and Description | 
|---|
MapUpdate()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object object)  | 
int | 
hashCode()  | 
K | 
key()
Returns the item key being updated. 
 | 
<S,T> MapUpdate<S,T> | 
map(Function<K,S> keyMapper,
   Function<V,T> valueMapper)
Transforms this instance into an instance of different parameterized types. 
 | 
static <K,V> MapUpdate.Builder<K,V> | 
newBuilder()
Creates a new builder instance. 
 | 
String | 
toString()  | 
MapUpdate.Type | 
type()
Returns the type of update operation. 
 | 
V | 
value()
Returns the new value. 
 | 
long | 
version()
Returns the expected current version in the database for the key. 
 | 
public MapUpdate.Type type()
public K key()
public V value()
public long version()
public <S,T> MapUpdate<S,T> map(Function<K,S> keyMapper, Function<V,T> valueMapper)
S - key type of returned instanceT - value type of returned instancekeyMapper - transcoder for key typevalueMapper - transcoder to value typepublic static <K,V> MapUpdate.Builder<K,V> newBuilder()
K - key typeV - value type