jfun.parsec
public class Pair<A,B> extends Object
Constructor Summary | |
---|---|
Pair() | |
Pair(A a, B b)
To create a Pair object. |
Method Summary | |
---|---|
boolean | equals(Pair other) |
A | getValue1()
Get the first value. |
B | getValue2()
Get the second value. |
void | setValue1(A value1)
Set the first value. |
void | setValue2(B value2)
Set the second value. |
Parameters: a the first object. b the second object.