Interface Tuple3<T0,​T1,​T2>

  • Type Parameters:
    T0 - type of element 0
    T1 - type of element 1
    T2 - type of element 2
    All Superinterfaces:
    BasicTuple<Object>, Tuple

    public interface Tuple3<T0,​T1,​T2>
    extends Tuple
    This interface defines a generic Tuple of degree 3 that can hold non-null values. A Tuple is type safe, immutable and thread safe. For tuples that can hold null elements see TupleOfNullables. For mutable tuples see MutableTuple This Tuple has a degree of 3

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

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

      • get0

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

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

        T2 get2()
        Returns the 2nd element from this tuple.
        Returns:
        the 2nd element from this tuple.
      • 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 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> TupleGetter0<Tuple3<T0,​T1,​T2>,​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
        Returns:
        the element at the 0th position
      • getter1

        static <T0,​T1,​T2> TupleGetter1<Tuple3<T0,​T1,​T2>,​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
        Returns:
        the element at the 1st position
      • getter2

        static <T0,​T1,​T2> TupleGetter2<Tuple3<T0,​T1,​T2>,​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
        Returns:
        the element at the 2nd position