Package it.polimi.ingsw.utility
Class Pair<K,V>
java.lang.Object
it.polimi.ingsw.utility.Pair<K,V>
- Type Parameters:
K- the type of the keyV- the type of the value
public class Pair<K,V>
extends java.lang.Object
Represents a pair of two object: a key and a value.
It's an immutable object.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Pair
-
Pair
-
-
Method Details
-
getKey
-
getValue
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-