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
  • Constructor Summary

    Constructors
    Constructor
    Description
    MutateInResult(com.couchbase.client.core.api.kv.CoreSubdocMutateResult core, JsonSerializer serializer)
     
  • 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.

    Methods inherited from class com.couchbase.client.java.kv.MutationResult

    cas, equals, hashCode, mutationToken, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MutateInResult

      @Internal public MutateInResult(com.couchbase.client.core.api.kv.CoreSubdocMutateResult core, JsonSerializer serializer)
  • Method Details

    • contentAs

      public <T> T contentAs(int index, Class<T> target)
      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

      public <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.
      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

      public <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.
      Parameters:
      index - the index of the subdoc value to decode.
      target - the target type to decode into.
      serializer - the custom JsonSerializer that will be used.
      Returns:
      the decoded content into the generic type requested.
    • contentAs

      public <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.
      Parameters:
      index - the index of the subdoc value to decode.
      target - the target type to decode into.
      serializer - the custom JsonSerializer that will be used.
      Returns:
      the decoded content into the generic type requested.