K
- map key typeV
- map value typepublic final class MapUpdate<K,V>
extends java.lang.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(java.lang.Object object) |
int |
hashCode() |
K |
key()
Returns the item key being updated.
|
<S,T> MapUpdate<S,T> |
map(java.util.function.Function<K,S> keyMapper,
java.util.function.Function<V,T> valueMapper)
Transforms this instance into an instance of different paramterized types.
|
static <K,V> MapUpdate.Builder<K,V> |
newBuilder()
Creates a new builder instance.
|
java.lang.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(java.util.function.Function<K,S> keyMapper, java.util.function.Function<V,T> valueMapper)
S
- key type of returned instanceT
- value type of returned instancekeyMapper
- transcoder for key typevalueMapper
- transcoder to value typepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static <K,V> MapUpdate.Builder<K,V> newBuilder()
K
- key typeV
- value type