Package battleship.utils
Class Pair<U,K>
java.lang.Object
battleship.utils.Pair<U,K>
- Type Parameters:
U
- leftK
- right
public class Pair<U,K>
extends java.lang.Object
tuple containing 2 generic type elements
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
left
-
right
-
-
Constructor Details
-
Pair
-
-
Method Details
-
getLeft
-
getRight
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-