Interface Tuple1<T0>

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

    public interface Tuple1<T0>
    extends Tuple
    This interface defines a generic Tuple of degree 1 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 1

    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.
      • 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> TupleGetter0<Tuple1<T0>,​T0> getter0()
        Returns a getter for the 0th element in the Tuple.
        Type Parameters:
        T0 - the 0th element type
        Returns:
        the element at the 0th position