|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.parsec.Pair<A,B>
A - B - public class Pair<A,B>
This is a simple Java Bean for a pair of objects.
| Constructor Summary | |
|---|---|
Pair()
|
|
Pair(A a,
B b)
To create a Pair object. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair()
public Pair(A a,
B b)
a - the first object.b - the second object.| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||