Package marauroa.common
Class Pair<T1,T2>
java.lang.Object
marauroa.common.Pair<T1,T2>
- Type Parameters:
T1
- type of first objectT2
- type of second object
a pair of two objects
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
creates a new pair- Parameters:
o1
- first objecto2
- second object
-
-
Method Details
-
first
gets the first object- Returns:
- first object
-
second
gets the second object- Returns:
- second object
-
setFirst
sets the first object- Parameters:
o1
- first object
-
setSecond
sets the second object- Parameters:
o2
- second object
-
equals
-
hashCode
public int hashCode() -
toString
-