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() |
public static <S,T> Pair<S,T> of(S first, T second)
Pair for the given elements.first - must not be null.second - must not be null.@Generated(value="lombok") public String toString()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.