Class MultiValue<T>

java.lang.Object
com.couchbase.client.java.subdoc.MultiValue<T>
All Implemented Interfaces:
Iterable<T>

@Uncommitted
@Private
public class MultiValue<T>
extends Object
implements Iterable<T>
An internal representation of multiple values to insert in an array via the sub-document API.
Since:
2.2
Author:
Simon Baslé
  • Constructor Details

    • MultiValue

      public MultiValue​(T... values)
      Create MultiValue out of an enumeration of objects (as a vararg).
    • MultiValue

      public MultiValue​(Collection<T> values)
      Create MultiValue out of a Collection of objects.
  • Method Details

    • size

      public int size()
      Returns:
      the size of this MultiValue, the number of iterable elements in it.
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>