S
- Type of the first thing.T
- Type of the second thing.public final class Pair<S,T> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
S |
getFirst()
Returns the first element of the
Pair . |
T |
getSecond()
Returns the second element of the
Pair . |
int |
hashCode() |
static <S,T> Pair<S,T> |
of(S first,
T second)
Creates a new
Pair for the given elements. |
static <S,T> Collector<Pair<S,T>,?,Map<S,T>> |
toMap()
|
String |
toString() |
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.