Package org.dizitart.no2.common.tuples
Class Pair<A,B>
java.lang.Object
org.dizitart.no2.common.tuples.Pair<A,B>
- Type Parameters:
A- the type of the first value in the pairB- the type of the second value in the pair
- All Implemented Interfaces:
Serializable
A simple generic class representing a pair of values.
- Since:
- 4.0
- Author:
- Anindya Chatterjee.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pair
public Pair() -
Pair
-
-
Method Details
-
pair
Creates a new pair.- Type Parameters:
A- the type parameterB- the type parameter- Parameters:
first- the firstsecond- the second- Returns:
- the pair
-
getFirst
-
getSecond
-
setFirst
-
setSecond
-
equals
-
hashCode
public int hashCode() -
toString
-