-
-
Constructor Summary
Constructors
| Constructor and description |
Tuple2(T1 v1, T2 v2) Creates a tuple containing the supplied elements. |
Tuple2(Tuple2<T1, T2> tuple) Creates a tuple from the supplied tuple. |
-
Methods Summary
Methods
| Type Params |
Return Type |
Name and description |
|
public Tuple2<T1, T2> |
clone() {@inheritDoc}
|
|
public T1 |
getFirst() Returns the first element. |
|
public T2 |
getSecond() Returns the second element. |
|
public T1 |
getV1() Returns the first element. |
|
public T2 |
getV2() Returns the second element. |
-
Inherited Methods Summary
Inherited Methods
| Methods inherited from class |
Name |
class Tuple |
clone, compareTo, equals, get, hashCode, size, subList, subTuple, toArray, toArray, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple |
-
-
Method Detail
-
public Tuple2<T1, T2> clone()
{@inheritDoc}
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.