K1
- K2
- public class Pair<K1,K2> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Pair.PairEqualsMode |
Constructor and Description |
---|
Pair(K1 k1,
K2 k2)
Creates a new pair using the two keys provided.
|
Pair(K1 k1,
K2 k2,
Pair.PairEqualsMode equalsMode)
Creates a new pair using the two keys provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
K1 |
getK1() |
K2 |
getK2() |
int |
hashCode() |
static <K1,K2> Pair<K1,K2> |
newPair(K1 k1,
K2 k2)
static factory method
|
static <K1,K2> Pair<K1,K2> |
newPair(K1 k1,
K2 k2,
Pair.PairEqualsMode equalsMode)
static factory method
|
String |
toString() |
public Pair(K1 k1, K2 k2)
k1
- k2
- public Pair(K1 k1, K2 k2, Pair.PairEqualsMode equalsMode)
k1
- k2
- public static <K1,K2> Pair<K1,K2> newPair(K1 k1, K2 k2)
K1
- K2
- k1
- k2
- public static <K1,K2> Pair<K1,K2> newPair(K1 k1, K2 k2, Pair.PairEqualsMode equalsMode)
K1
- K2
- k1
- k2
- public K1 getK1()
public K2 getK2()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.