K - The type of the first portion of the pairY - The type of the second portion of the pairpublic class Pair<K,Y> extends Object
| Modifier and Type | Method and Description |
|---|---|
K |
getFirst() |
Y |
getSecond() |
static <A,B> Pair<A,B> |
pairify(A first,
B second)
Convenience method to create a pair
|
void |
setFirst(K first) |
void |
setSecond(Y second) |
public K getFirst()
public void setFirst(K first)
public Y getSecond()
public void setSecond(Y second)
public static <A,B> Pair<A,B> pairify(A first, B second)
A - The type of the first portion of the pairB - The type of the second portion of the pairfirst - The first object in the pairsecond - The second object in the pairCopyright © 2017. All rights reserved.