Package: groovy.lang

## [Java] Class Tuple1<T1>

- groovy.lang.Tuple1

- Represents a list of 1 typed Object.

  Since:
    2.5.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Tuple1 (T1 first)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `Object` | `get(int index)`
    `` | `T1` | `getFirst()`
    `` | `int` | `size()`

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public Tuple1(T1 first)

  - ### Method Detail

    - #### @Override public Object get(int index)

    - #### public T1 getFirst()

    - #### @Override public int size()