[Java] Class Tuple2<T1, T2>

  • groovy.lang.Tuple2

Represents a list of 2 typed Objects.

Constructor Summary

Constructors
Constructor and description
Tuple2 (T1 first, T2 second)

Methods Summary

Methods
Type Params Return Type Name and description
Object get(int index)
T1 getFirst()
T2 getSecond()
int size()

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class Tuple equals, get, hashCode, size, subList, subTuple

Constructor Detail

public Tuple2(T1 first, T2 second)

Method Detail

@Override public Object get(int index)

public T1 getFirst()

public T2 getSecond()

@Override public int size()

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/lang/Tuple2.html