Package com.couchbase.client.java.kv
Class MutateInResult
java.lang.Object
com.couchbase.client.java.kv.MutationResult
com.couchbase.client.java.kv.MutateInResult
public class MutateInResult extends MutationResult
This result is returned from successful KeyValue subdocument mutation responses.
- Since:
- 3.0.0
-
Method Summary
Modifier and Type Method Description <T> T
contentAs(int index, TypeRef<T> target)
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
contentAs(int index, Class<T> target)
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.boolean
equals(Object o)
int
hashCode()
String
toString()
Methods inherited from class com.couchbase.client.java.kv.MutationResult
cas, mutationToken
-
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.
-
toString
- Overrides:
toString
in classMutationResult
-
equals
- Overrides:
equals
in classMutationResult
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMutationResult
-