S
- Type of the first thing.T
- Type of the second thing.public final class Pair<S,T> extends Object
Constructor and Description |
---|
Pair() |
Modifier and Type | Method and Description |
---|---|
S |
getFirst()
Returns the first element of the
Pair . |
T |
getSecond()
Returns the second element of the
Pair . |
static <S,T> Pair<S,T> |
of(S first,
T second)
Creates a new
Pair for the given elements. |
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.