Interface TupleOfNullables

  • All Superinterfaces:
    BasicTuple<Optional<Object>>
    All Known Subinterfaces:
    Tuple0OfNullables, Tuple10OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9>, Tuple11OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10>, Tuple12OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11>, Tuple13OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12>, Tuple14OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13>, Tuple15OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14>, Tuple16OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15>, Tuple17OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16>, Tuple18OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17>, Tuple19OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18>, Tuple1OfNullables<T0>, Tuple20OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19>, Tuple21OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19,​T20>, Tuple22OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19,​T20,​T21>, Tuple23OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19,​T20,​T21,​T22>, Tuple2OfNullables<T0,​T1>, Tuple3OfNullables<T0,​T1,​T2>, Tuple4OfNullables<T0,​T1,​T2,​T3>, Tuple5OfNullables<T0,​T1,​T2,​T3,​T4>, Tuple6OfNullables<T0,​T1,​T2,​T3,​T4,​T5>, Tuple7OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6>, Tuple8OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7>, Tuple9OfNullables<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>

    public interface TupleOfNullables
    extends BasicTuple<Optional<Object>>
    This interface defines a generic Tuple of any order that can hold null values. A Tuple is type safe, immutable and thread safe. For pure non-null value elements see Tuple
    Author:
    pemi
    See Also:
    Tuple
    • Method Detail

      • stream

        default Stream<Optional<Object>> stream()
        Returns a Stream of all values for this Tuple. If sequential, the Stream will start with the 0:th tuple and progress upwards.
        Returns:
        a Stream of all values for this Tuple
      • streamOf

        default <T> Stream<T> streamOf​(Class<T> clazz)
        Description copied from interface: BasicTuple
        Returns a Stream of all values for this Tuple of the given class. I.e. all non-null members of a Tuple that can be cast to the given class are included in the Stream. If sequential, the Stream will start with the 0:th tuple and progress upwards.
        Specified by:
        streamOf in interface BasicTuple<Optional<Object>>
        Type Parameters:
        T - The type of stream
        Parameters:
        clazz - The class of the type of the stream
        Returns:
        a Stream of all values for this Tuple of the given class
      • getter

        static <TUPLE extends TupleOfNullables,​R> TupleGetter<TUPLE,​R> getter​(int index)
        Returns a getter method for the specified ordinal element.
        Type Parameters:
        TUPLE - the type of the tuple
        R - the type of the returned element
        Parameters:
        index - the position of the element to return
        Returns:
        the created getter