Class Pair<T,U>
java.lang.Object
Pair<T,U>
- Type Parameters:
T- the type of the first elementU- the type of the second element
This utility class stores two items together in a pair.
It could be used, for instance, to faciliate returning of
two values in a function.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pair
Creates aPairof items.- Parameters:
t- first item of the pairu- second item of the pair
-
-
Method Details