T1 - type of first elementT2 - type of second elementpublic class Tuple2<T1,T2> extends Object
| Modifier and Type | Field and Description |
|---|---|
T1 |
first
The first element.
|
T2 |
second
The second element.
|
| Constructor and Description |
|---|
Tuple2(T1 first,
T2 second)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static <T1,T2> Tuple2<T1,T2> |
of(T1 first,
T2 second)
Creates a new instance.
|
String |
toString() |
public final T1 first
public final T2 second
public static <T1,T2> Tuple2<T1,T2> of(T1 first, T2 second)
T1 - type of first elementT2 - type of second elementfirst - the first elementsecond - the second elementCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.