public class Pair<A,B> extends Object implements Serializable
| Constructor and Description |
|---|
Pair()
Contructs a pair holding two null values.
|
Pair(A a,
B b)
Contructs a pair holding the given objects.
|
Pair(Map.Entry<A,B> e) |
Pair(Pair<A,B> p)
Contructs a pair holding the objects of the given pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
A |
getFirst() |
A |
getKey() |
B |
getSecond() |
B |
getValue() |
int |
hashCode() |
void |
setFirst(A first) |
void |
setSecond(B second) |
static <K,V> HashMap<K,V> |
toHashMap(List<Pair<K,V>> pairs) |
String |
toString() |
Copyright © 2017 Molindo GmbH. All Rights Reserved.