V - map value typepublic final class NodeUpdate<V>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeUpdate.Builder<V>
NodeUpdate builder.
|
static class |
NodeUpdate.Type
Type of database update operation.
|
| Constructor and Description |
|---|
NodeUpdate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
<T> NodeUpdate<T> |
map(java.util.function.Function<V,T> valueMapper)
Transforms this instance into an instance of different paramterized types.
|
static <V> NodeUpdate.Builder<V> |
newBuilder()
Creates a new builder instance.
|
DocumentPath |
path()
Returns the item path being updated.
|
java.lang.String |
toString() |
NodeUpdate.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 NodeUpdate.Type type()
public DocumentPath path()
public V value()
public long version()
public <T> NodeUpdate<T> map(java.util.function.Function<V,T> valueMapper)
T - value type of returned instancevalueMapper - transcoder to value typepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static <V> NodeUpdate.Builder<V> newBuilder()
V - value type