Package: groovy.lang

## [Java] Class TupleE

- groovy.lang.Tuple

- All Implemented Interfaces and Traits:
    Serializable, Cloneable, Comparable

      public class Tuple
      extends AbstractList

  Represents a list of Objects.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Tuple (E contents)`
    `Tuple (Tuple<E> tuple)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `Tuple<E>` | `clone()`
    `` | `int` | `compareTo(Tuple<E> other)`
    `` | `boolean` | `equals(Object o)`
    `` | `E` | `get(int index)`
    `` | `int` | `hashCode()`
    `` | `int` | `size()`
    `` | `List<E>` | `subList(int fromIndex, int toIndex)`
    `` | `Tuple<E>` | `subTuple(int fromIndex, int toIndex)`
    `` | `E[]` | `toArray()`
    `` | `static Tuple0` | `tuple()` Construct a tuple of degree 0.
    `` | `static Tuple1<T1>` | `tuple(T1 v1)` Construct a tuple of degree 1.
    `` | `static Tuple2<T1, T2>` | `tuple(T1 v1, T2 v2)` Construct a tuple of degree 2.
    `` | `static Tuple3<T1, T2, T3>` | `tuple(T1 v1, T2 v2, T3 v3)` Construct a tuple of degree 3.
    `` | `static Tuple4<T1, T2, T3, T4>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4)` Construct a tuple of degree 4.
    `` | `static Tuple5<T1, T2, T3, T4, T5>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)` Construct a tuple of degree 5.
    `` | `static Tuple6<T1, T2, T3, T4, T5, T6>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6)` Construct a tuple of degree 6.
    `` | `static Tuple7<T1, T2, T3, T4, T5, T6, T7>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7)` Construct a tuple of degree 7.
    `` | `static Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)` Construct a tuple of degree 8.
    `` | `static Tuple9<T1, T2, T3, T4, T5, T6, T7, T8, T9>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9)` Construct a tuple of degree 9.
    `` | `static Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10)` Construct a tuple of degree 10.
    `` | `static Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11)` Construct a tuple of degree 11.
    `` | `static Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12)` Construct a tuple of degree 12.
    `` | `static Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13)` Construct a tuple of degree 13.
    `` | `static Tuple14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14)` Construct a tuple of degree 14.
    `` | `static Tuple15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15)` Construct a tuple of degree 15.
    `` | `static Tuple16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>` | `tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16)` Construct a tuple of degree 16.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractList` | `add, add, remove, get, equals, hashCode, indexOf, clear, lastIndexOf, subList, iterator, addAll, set, listIterator, listIterator, remove, toString, isEmpty, contains, size, toArray, toArray, addAll, containsAll, retainAll, removeAll, wait, wait, wait, getClass, notify, notifyAll, toArray, spliterator, stream, removeIf, parallelStream, forEach, replaceAll, sort`

- - ### Constructor Detail

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprSafeVarargs public Tuple(E contents)

    - #### public Tuple(Tuple<E> tuple)

  - ### Method Detail

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public Tuple<E> clone()

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public int compareTo(Tuple<E> other)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public boolean equals(Object o)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public E get(int index)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public int hashCode()

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public int size()

    - #### @com.github.javaparser.ast.expr.SingleMemberAnnotationExprSuppressWarnings @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public List<E> subList(int fromIndex, int toIndex)

    - #### public Tuple<E> subTuple(int fromIndex, int toIndex)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public E[] toArray()

    - #### public static Tuple0 tuple()

      Construct a tuple of degree 0.

    - #### public static Tuple1<T1> tuple(T1 v1)

      Construct a tuple of degree 1.

    - #### public static Tuple2<T1, T2> tuple(T1 v1, T2 v2)

      Construct a tuple of degree 2.

    - #### public static Tuple3<T1, T2, T3> tuple(T1 v1, T2 v2, T3 v3)

      Construct a tuple of degree 3.

    - #### public static Tuple4<T1, T2, T3, T4> tuple(T1 v1, T2 v2, T3 v3, T4 v4)

      Construct a tuple of degree 4.

    - #### public static Tuple5<T1, T2, T3, T4, T5> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)

      Construct a tuple of degree 5.

    - #### public static Tuple6<T1, T2, T3, T4, T5, T6> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6)

      Construct a tuple of degree 6.

    - #### public static Tuple7<T1, T2, T3, T4, T5, T6, T7> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7)

      Construct a tuple of degree 7.

    - #### public static Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)

      Construct a tuple of degree 8.

    - #### public static Tuple9<T1, T2, T3, T4, T5, T6, T7, T8, T9> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9)

      Construct a tuple of degree 9.

    - #### public static Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10)

      Construct a tuple of degree 10.

    - #### public static Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11)

      Construct a tuple of degree 11.

    - #### public static Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12)

      Construct a tuple of degree 12.

    - #### public static Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13)

      Construct a tuple of degree 13.

    - #### public static Tuple14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14)

      Construct a tuple of degree 14.

    - #### public static Tuple15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15)

      Construct a tuple of degree 15.

    - #### public static Tuple16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16)

      Construct a tuple of degree 16.