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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T>
iterator()
int
size()
-
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 Detail
-
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.
-
-