S - The type of the first elementT - The type of the second elementpublic final class Tuple2<S,T> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
S |
getFirst()
Returns the first element of this tuple
|
T |
getSecond()
Returns the second element of this tuple
|
int |
hashCode() |
static <S,SS extends S,T,TT extends T> |
of(SS s,
TT t)
Creates a new 2-tuple consisting of the given elements
|
String |
toString() |
public static <S,SS extends S,T,TT extends T> Tuple2<S,T> of(SS s, TT t)
S - The type of the first elementSS - A subtype of the first element typeT - The type of the second elementTT - A subtype of the second element types - The first elementt - The second elementpublic S getFirst()
public T getSecond()
Copyright © 2020. All rights reserved.