Package com.amilesend.client.util
Class Pair<K,V>
java.lang.Object
com.amilesend.client.util.Pair<K,V>
- Type Parameters:
K
- the key or leftV
- the value or right
- All Implemented Interfaces:
Map.Entry<K,
V>
A simple tuple class that references two objects.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pair
Creates a newPair
instance.- Parameters:
left
- The left reference.right
- the right reference.
-
-
Method Details
-
of
Creates a newPair
for the given left and right objects.- Type Parameters:
K
- the left object class typeV
- the right object class type- Parameters:
left
- the left objectright
- the right object- Returns:
- the tuple
-
getKey
-
getValue
-
setValue
-
getLeft
The left reference. -
getRight
the right reference. -
equals
-
hashCode
public int hashCode() -
toString
-