Package xyz.jpenilla.squaremap.api
Class Pair<L,R>
java.lang.Object
xyz.jpenilla.squaremap.api.Pair<L,R>
- Type Parameters:
L- Left generic type argumentR- Right generic type argument
Data class for holding a pair of non-null objects with generic types.
-
Method Summary
-
Method Details
-
left
Get the left value- Returns:
- Left value
-
right
Get the right value- Returns:
- Right value
-
equals
-
hashCode
public int hashCode() -
of
Create a new Pair- Type Parameters:
L- Left generic typeR- Right generic type- Parameters:
left- Left valueright- Right value- Returns:
- new pair
-