Package pvzclone.model.impl
Class Pair<X,Y>
java.lang.Object
pvzclone.model.impl.Pair<X,Y>
- Type Parameters:
X
- first element type.Y
- second element type.
A standard generic Pair<X,Y>.
It comprehends getters, hashCode, equals, and toString.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
Pair Constructor.- Parameters:
x
- first element.y
- second element.
-
-
Method Details
-
getX
Returns the first element of the Pair Object.- Returns:
- first element of pair.
-
getY
Returns the second element of the Pair Object.- Returns:
- second element of pair.
-
hashCode
public int hashCode() -
equals
-
toString
-