|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.Pair<A,B>
A - The type of the first element.B - The type of the second element.public class Pair<A,B>
Represents a pair of data.
| Constructor Summary | |
|---|---|
Pair()
Creates a new pair. |
|
Pair(A a,
B b)
Creates a new pair. |
|
| Method Summary | ||
|---|---|---|
static
|
create(A a,
B b)
Creates a new pair. |
|
boolean |
equals(Object obj)
|
|
A |
getA()
Gets the first element. |
|
B |
getB()
Gets the second element. |
|
int |
hashCode()
|
|
void |
setA(A a)
Sets the first element. |
|
void |
setB(B b)
Sets the second element. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(A a,
B b)
a - The first data.b - The second data.public Pair()
| Method Detail |
|---|
public static <A,B> Pair<A,B> create(A a,
B b)
A - The type of the first element.B - The type of the second element.a - The first data.b - The second data.
public A getA()
public void setA(A a)
a - The first element.public B getB()
public void setB(B b)
b - The second element.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||