[Java] Class Tuple2<T1, T2>
- groovy.lang.Tuple2
Represents a list of 2 typed Objects.
Constructor Summary
Constructor and description |
---|
Tuple2
(T1 first, T2 second) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
T1 |
getFirst() | |
T2 |
getSecond() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Tuple | equals, get, hashCode, size, subList |
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 Tuple2(T1 first, T2 second)
Method Detail
@SuppressWarnings("unchecked") public T1 getFirst()
@SuppressWarnings("unchecked") public T2 getSecond()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/lang/Tuple2.html