Package com.sinch.sdk.core.utils
Class Pair<N,V>
java.lang.Object
com.sinch.sdk.core.utils.Pair<N,V>
- Type Parameters:
N- Type of the left valueV- Type of the right value
Utility class to manage a pair of information (tuple)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pair
Create a new pair- Parameters:
left- The left (key) value for this pairright- The right (value) value for this pair
-
-
Method Details
-
getLeft
Get the left value of this Pair- Returns:
- Left value
-
getRight
Get the right value of this Pair- Returns:
- Right value
-
of
Helper to create new instance of Pair- Type Parameters:
K- Key typeV- Value type- Parameters:
key- key valuevalue- value of value- Returns:
- Right value
-
toString
-