|
Kie Commons Data 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kie.commons.data.Pair<K1,K2>
K1 - K2 - public class Pair<K1,K2>
This is a simple class to store a pair of objects.
| Nested Class Summary | |
|---|---|
static class |
Pair.PairEqualsMode
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object o)
|
|
K1 |
getK1()
|
|
K2 |
getK2()
|
|
int |
hashCode()
|
|
static
|
newPair(K1 k1,
K2 k2)
static factory method |
|
static
|
newPair(K1 k1,
K2 k2,
Pair.PairEqualsMode equalsMode)
static factory method |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(K1 k1,
K2 k2)
k1 - k2 -
public Pair(K1 k1,
K2 k2,
Pair.PairEqualsMode equalsMode)
k1 - k2 - | Method Detail |
|---|
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 boolean equals(Object o)
equals in class Objectpublic K1 getK1()
public K2 getK2()
public int hashCode()
hashCode in class Object
|
Kie Commons Data 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||