Class 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 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.
    • Method Detail

      • size

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