Package com.couchbase.client.java.subdoc
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 Summary
Constructors Constructor Description MultiValue(Collection<T> values)
Create MultiValue out of a Collection of objects.MultiValue(T... values)
Create MultiValue out of an enumeration of objects (as a vararg). -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MultiValue
Create MultiValue out of an enumeration of objects (as a vararg). -
MultiValue
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
-