Package com.couchbase.client.java.kv
Class MutateInResult
java.lang.Object
com.couchbase.client.java.kv.MutationResult
com.couchbase.client.java.kv.MutateInResult
This result is returned from successful KeyValue subdocument mutation responses.
- Since:
- 3.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Decodes the content at the given index into an instance of the target type with the default decoder.<T> T
contentAs
(int index, TypeRef<T> target, JsonSerializer serializer) Decodes the content at the given index into an instance of the target type with a custom decoder.<T> T
Decodes the content at the given index into the target class with the default decoder.<T> T
contentAs
(int index, Class<T> target, JsonSerializer serializer) Decodes the content at the given index into an instance of the target class with a custom decoder.Methods inherited from class com.couchbase.client.java.kv.MutationResult
cas, equals, hashCode, mutationToken, toString
-
Constructor Details
-
MutateInResult
-
-
Method Details
-
contentAs
Decodes the content at the given index into the target class with the default decoder.- Parameters:
index
- the index of the subdoc value to decode.target
- the target type to decode into.- Returns:
- the decoded content into the generic type requested.
-
contentAs
Decodes the content at the given index into an instance of the target type with the default decoder.- Parameters:
index
- the index of the subdoc value to decode.target
- the target type to decode into.- Returns:
- the decoded content into the generic type requested.
-
contentAs
Decodes the content at the given index into an instance of the target class with a custom decoder.- Parameters:
index
- the index of the subdoc value to decode.target
- the target type to decode into.serializer
- the customJsonSerializer
that will be used.- Returns:
- the decoded content into the generic type requested.
-
contentAs
Decodes the content at the given index into an instance of the target type with a custom decoder.- Parameters:
index
- the index of the subdoc value to decode.target
- the target type to decode into.serializer
- the customJsonSerializer
that will be used.- Returns:
- the decoded content into the generic type requested.
-