Class Tuple1<T1>

java.lang.Object
org.jooq.lambda.tuple.Tuple1<T1>
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Tuple1<T1>>, Iterable<Object>, Tuple

public class Tuple1<T1> extends Object implements Tuple, Comparable<Tuple1<T1>>, Serializable, Cloneable
A tuple of degree 1.
Author:
Lukas Eder
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final T1
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Tuple1(Tuple1<T1> tuple)
     
    Tuple1(T1 v1)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final Object[]
    Deprecated.
     
    int
     
    final <T2> Tuple2<T1,T2>
    concat(Tuple1<T2> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
    Tuple11<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
    concat(Tuple10<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
    Tuple12<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>
    concat(Tuple11<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
    Tuple13<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>
    concat(Tuple12<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
    Tuple14<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>
    concat(Tuple13<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
    Tuple15<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>
    concat(Tuple14<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
    Tuple16<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>
    concat(Tuple15<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3> Tuple3<T1,T2,T3>
    concat(Tuple2<T2,T3> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4> Tuple4<T1,T2,T3,T4>
    concat(Tuple3<T2,T3,T4> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5>
    Tuple5<T1,T2,T3,T4,T5>
    concat(Tuple4<T2,T3,T4,T5> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6>
    Tuple6<T1,T2,T3,T4,T5,T6>
    concat(Tuple5<T2,T3,T4,T5,T6> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7>
    Tuple7<T1,T2,T3,T4,T5,T6,T7>
    concat(Tuple6<T2,T3,T4,T5,T6,T7> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8>
    Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>
    concat(Tuple7<T2,T3,T4,T5,T6,T7,T8> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9>
    Tuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>
    concat(Tuple8<T2,T3,T4,T5,T6,T7,T8,T9> tuple)
    Concatenate a tuple to this tuple.
    final <T2, T3, T4, T5, T6, T7, T8, T9, T10>
    Tuple10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>
    concat(Tuple9<T2,T3,T4,T5,T6,T7,T8,T9,T10> tuple)
    Concatenate a tuple to this tuple.
    final <T2> Tuple2<T1,T2>
    concat(T2 value)
    Concatenate a value to this tuple.
    final int
    The degree of this tuple: 1.
    boolean
     
    int
     
     
    final Tuple0
    Limit this tuple to degree 0.
    final Tuple1<T1>
    Limit this tuple to degree 1.
    final List<?>
    Deprecated.
    final <R> R
    map(Function<? super T1,? extends R> function)
    Apply this tuple as arguments to a function.
    final <U1> Tuple1<U1>
    map1(Function<? super T1,? extends U1> function)
    Apply attribute 1 as argument to a function and return a new tuple with the substituted argument.
    final Tuple1<T1>
    Skip 0 degrees from this tuple.
    final Tuple0
    Skip 1 degrees from this tuple.
    Split this tuple into two tuples of degree 0 and 1.
    Split this tuple into two tuples of degree 1 and 0.
    final Object[]
    Get an array representation of this tuple.
    final List<?>
    Get a list representation of this tuple.
    final Map<String,?>
    Get a map representation of this tuple.
    final <K> Map<K,?>
    toMap(Function<? super Integer,? extends K> keyMapper)
    Get a map representation of this tuple.
    final Seq<?>
    Get a Seq representation of this tuple.
     
    v1()
     

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • v1

      public final T1 v1
  • Constructor Details

    • Tuple1

      public Tuple1(Tuple1<T1> tuple)
    • Tuple1

      public Tuple1(T1 v1)
  • Method Details

    • v1

      public T1 v1()
    • concat

      public final <T2> Tuple2<T1,T2> concat(T2 value)
      Concatenate a value to this tuple.
    • concat

      public final <T2> Tuple2<T1,T2> concat(Tuple1<T2> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3> Tuple3<T1,T2,T3> concat(Tuple2<T2,T3> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4> Tuple4<T1,T2,T3,T4> concat(Tuple3<T2,T3,T4> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5> Tuple5<T1,T2,T3,T4,T5> concat(Tuple4<T2,T3,T4,T5> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6> Tuple6<T1,T2,T3,T4,T5,T6> concat(Tuple5<T2,T3,T4,T5,T6> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7> Tuple7<T1,T2,T3,T4,T5,T6,T7> concat(Tuple6<T2,T3,T4,T5,T6,T7> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8> Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> concat(Tuple7<T2,T3,T4,T5,T6,T7,T8> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9> Tuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9> concat(Tuple8<T2,T3,T4,T5,T6,T7,T8,T9> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10> Tuple10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> concat(Tuple9<T2,T3,T4,T5,T6,T7,T8,T9,T10> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tuple11<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> concat(Tuple10<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tuple12<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> concat(Tuple11<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuple13<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> concat(Tuple12<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tuple14<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> concat(Tuple13<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Tuple15<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> concat(Tuple14<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> tuple)
      Concatenate a tuple to this tuple.
    • concat

      public final <T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Tuple16<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> concat(Tuple15<T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> tuple)
      Concatenate a tuple to this tuple.
    • split0

      public final Tuple2<Tuple0,Tuple1<T1>> split0()
      Split this tuple into two tuples of degree 0 and 1.
    • split1

      public final Tuple2<Tuple1<T1>,Tuple0> split1()
      Split this tuple into two tuples of degree 1 and 0.
    • limit0

      public final Tuple0 limit0()
      Limit this tuple to degree 0.
    • limit1

      public final Tuple1<T1> limit1()
      Limit this tuple to degree 1.
    • skip0

      public final Tuple1<T1> skip0()
      Skip 0 degrees from this tuple.
    • skip1

      public final Tuple0 skip1()
      Skip 1 degrees from this tuple.
    • map

      public final <R> R map(Function<? super T1,? extends R> function)
      Apply this tuple as arguments to a function.
    • map1

      public final <U1> Tuple1<U1> map1(Function<? super T1,? extends U1> function)
      Apply attribute 1 as argument to a function and return a new tuple with the substituted argument.
    • array

      @Deprecated public final Object[] array()
      Deprecated.
      Description copied from interface: Tuple
      Get an array representation of this tuple.
      Specified by:
      array in interface Tuple
    • toArray

      public final Object[] toArray()
      Description copied from interface: Tuple
      Get an array representation of this tuple.
      Specified by:
      toArray in interface Tuple
    • list

      @Deprecated public final List<?> list()
      Deprecated.
      Description copied from interface: Tuple
      Get a list representation of this tuple.
      Specified by:
      list in interface Tuple
    • toList

      public final List<?> toList()
      Description copied from interface: Tuple
      Get a list representation of this tuple.
      Specified by:
      toList in interface Tuple
    • toSeq

      public final Seq<?> toSeq()
      Description copied from interface: Tuple
      Get a Seq representation of this tuple.
      Specified by:
      toSeq in interface Tuple
    • toMap

      public final Map<String,?> toMap()
      Description copied from interface: Tuple
      Get a map representation of this tuple.
      Specified by:
      toMap in interface Tuple
    • toMap

      public final <K> Map<K,?> toMap(Function<? super Integer,? extends K> keyMapper)
      Description copied from interface: Tuple
      Get a map representation of this tuple.
      Specified by:
      toMap in interface Tuple
    • degree

      public final int degree()
      The degree of this tuple: 1.
      Specified by:
      degree in interface Tuple
    • iterator

      public final Iterator<Object> iterator()
      Specified by:
      iterator in interface Iterable<T1>
    • compareTo

      public int compareTo(Tuple1<T1> other)
      Specified by:
      compareTo in interface Comparable<T1>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Tuple1<T1> clone()
      Overrides:
      clone in class Object