Interface MutableTuple5<T0,​T1,​T2,​T3,​T4>

  • Type Parameters:
    T0 - type of element 0
    T1 - type of element 1
    T2 - type of element 2
    T3 - type of element 3
    T4 - type of element 4
    All Superinterfaces:
    BasicTuple<Optional<Object>>, MutableTuple

    public interface MutableTuple5<T0,​T1,​T2,​T3,​T4>
    extends MutableTuple
    This interface defines a generic MutableTuple of any order that can hold null values. A MutableTuple is type safe but NOT thread safe. For pure non-null value elements see Tuple This MutableTuple has a degree of 5

    Generated by com.speedment.sources.pattern.tuple.TuplePattern

    Author:
    Per Minborg
    See Also:
    Tuple, TupleOfNullables, MutableTuple
    • Method Detail

      • get0

        Optional<T0> get0()
        Returns the 0th element from this tuple.
        Returns:
        the 0th element from this tuple.
      • get1

        Optional<T1> get1()
        Returns the 1st element from this tuple.
        Returns:
        the 1st element from this tuple.
      • get2

        Optional<T2> get2()
        Returns the 2nd element from this tuple.
        Returns:
        the 2nd element from this tuple.
      • get3

        Optional<T3> get3()
        Returns the 3rd element from this tuple.
        Returns:
        the 3rd element from this tuple.
      • get4

        Optional<T4> get4()
        Returns the 4th element from this tuple.
        Returns:
        the 4th element from this tuple.
      • set0

        void set0​(T0 t0)
        Sets the 0th element in this tuple.
        Parameters:
        t0 - the new value for the 0th element
      • set1

        void set1​(T1 t1)
        Sets the 1st element in this tuple.
        Parameters:
        t1 - the new value for the 1st element
      • set2

        void set2​(T2 t2)
        Sets the 2nd element in this tuple.
        Parameters:
        t2 - the new value for the 2nd element
      • set3

        void set3​(T3 t3)
        Sets the 3rd element in this tuple.
        Parameters:
        t3 - the new value for the 3rd element
      • set4

        void set4​(T4 t4)
        Sets the 4th element in this tuple.
        Parameters:
        t4 - the new value for the 4th element
      • degree

        default int degree()
        Description copied from interface: BasicTuple
        Returns the degree of the BasicTuple. For example, a Tuple2 has a degree of 2 whereas a Tuple3 has a degree of 3.
        Specified by:
        degree in interface BasicTuple<T0>
        Returns:
        the degree of the Tuple
      • get

        default Optional<Object> get​(int index)
        Description copied from interface: BasicTuple
        Gets the tuple element at the given index. For example, get(0) will return the first element and get(1) will return the second etc.
        Specified by:
        get in interface BasicTuple<T0>
        Parameters:
        index - of the element to get
        Returns:
        the tuple element at the given index
      • getter0

        static <T0,​T1,​T2,​T3,​T4> TupleGetter0<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​Optional<T0>> getter0()
        Returns a getter for the 0th element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 0th position
      • getOrNull0

        default T0 getOrNull0()
        Returns the 0th element from this tuple or null if no such element is present.
        Returns:
        the 0th element from this tuple or null if no such element is present.
      • getterOrNull0

        static <T0,​T1,​T2,​T3,​T4> TupleGetter0<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T0> getterOrNull0()
        Returns a getter for the 0th element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 0th position
      • setter0

        static <T0,​T1,​T2,​T3,​T4> BiConsumer<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T0> setter0()
        Returns a setter for the 0th element in the MutableTuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 0th position
      • getter1

        static <T0,​T1,​T2,​T3,​T4> TupleGetter1<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​Optional<T1>> getter1()
        Returns a getter for the 1st element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 1st position
      • getOrNull1

        default T1 getOrNull1()
        Returns the 1st element from this tuple or null if no such element is present.
        Returns:
        the 1st element from this tuple or null if no such element is present.
      • getterOrNull1

        static <T0,​T1,​T2,​T3,​T4> TupleGetter1<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T1> getterOrNull1()
        Returns a getter for the 1st element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 1st position
      • setter1

        static <T0,​T1,​T2,​T3,​T4> BiConsumer<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T1> setter1()
        Returns a setter for the 1st element in the MutableTuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 1st position
      • getter2

        static <T0,​T1,​T2,​T3,​T4> TupleGetter2<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​Optional<T2>> getter2()
        Returns a getter for the 2nd element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 2nd position
      • getOrNull2

        default T2 getOrNull2()
        Returns the 2nd element from this tuple or null if no such element is present.
        Returns:
        the 2nd element from this tuple or null if no such element is present.
      • getterOrNull2

        static <T0,​T1,​T2,​T3,​T4> TupleGetter2<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T2> getterOrNull2()
        Returns a getter for the 2nd element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 2nd position
      • setter2

        static <T0,​T1,​T2,​T3,​T4> BiConsumer<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T2> setter2()
        Returns a setter for the 2nd element in the MutableTuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 2nd position
      • getter3

        static <T0,​T1,​T2,​T3,​T4> TupleGetter3<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​Optional<T3>> getter3()
        Returns a getter for the 3rd element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 3rd position
      • getOrNull3

        default T3 getOrNull3()
        Returns the 3rd element from this tuple or null if no such element is present.
        Returns:
        the 3rd element from this tuple or null if no such element is present.
      • getterOrNull3

        static <T0,​T1,​T2,​T3,​T4> TupleGetter3<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T3> getterOrNull3()
        Returns a getter for the 3rd element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 3rd position
      • setter3

        static <T0,​T1,​T2,​T3,​T4> BiConsumer<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T3> setter3()
        Returns a setter for the 3rd element in the MutableTuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 3rd position
      • getter4

        static <T0,​T1,​T2,​T3,​T4> TupleGetter4<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​Optional<T4>> getter4()
        Returns a getter for the 4th element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 4th position
      • getOrNull4

        default T4 getOrNull4()
        Returns the 4th element from this tuple or null if no such element is present.
        Returns:
        the 4th element from this tuple or null if no such element is present.
      • getterOrNull4

        static <T0,​T1,​T2,​T3,​T4> TupleGetter4<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T4> getterOrNull4()
        Returns a getter for the 4th element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 4th position
      • setter4

        static <T0,​T1,​T2,​T3,​T4> BiConsumer<MutableTuple5<T0,​T1,​T2,​T3,​T4>,​T4> setter4()
        Returns a setter for the 4th element in the MutableTuple.
        Type Parameters:
        T0 - the 0th element type
        T1 - the 1st element type
        T2 - the 2nd element type
        T3 - the 3rd element type
        T4 - the 4th element type
        Returns:
        the element at the 4th position