Interface MutableTuple

  • All Superinterfaces:
    BasicTuple<Optional<Object>>
    All Known Subinterfaces:
    MutableTuple0, MutableTuple1<T0>, MutableTuple10<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9>, MutableTuple11<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10>, MutableTuple12<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11>, MutableTuple13<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12>, MutableTuple14<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13>, MutableTuple15<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14>, MutableTuple16<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15>, MutableTuple17<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16>, MutableTuple18<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17>, MutableTuple19<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18>, MutableTuple2<T0,​T1>, MutableTuple20<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19>, MutableTuple21<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19,​T20>, MutableTuple22<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19,​T20,​T21>, MutableTuple23<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9,​T10,​T11,​T12,​T13,​T14,​T15,​T16,​T17,​T18,​T19,​T20,​T21,​T22>, MutableTuple3<T0,​T1,​T2>, MutableTuple4<T0,​T1,​T2,​T3>, MutableTuple5<T0,​T1,​T2,​T3,​T4>, MutableTuple6<T0,​T1,​T2,​T3,​T4,​T5>, MutableTuple7<T0,​T1,​T2,​T3,​T4,​T5,​T6>, MutableTuple8<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7>, MutableTuple9<T0,​T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8>

    public interface MutableTuple
    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 MutableTuple,​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