A - B - public class Pair<A,B>
extends java.lang.Object
| Constructor and Description |
|---|
Pair() |
Pair(A a,
B b)
To create a Pair object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equals(Pair other) |
A |
getValue1()
Get the first value.
|
B |
getValue2()
Get the second value.
|
int |
hashCode() |
void |
setValue1(A value1)
Set the first value.
|
void |
setValue2(B value2)
Set the second value.
|
java.lang.String |
toString() |
public A getValue1()
public void setValue1(A value1)
public B getValue2()
public void setValue2(B value2)
public boolean equals(Pair other)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object