Package com.atlassian.upm.api.util
Class Pair<A,B>
java.lang.Object
com.atlassian.upm.api.util.Pair<A,B>
- Type Parameters:
A- type of the first valueB- type of the second value
A tuple of size 2.
-
Method Summary
-
Method Details
-
first
- Returns:
- the first value
-
second
- Returns:
- the second value
-
equals
-
hashCode
public int hashCode() -
toString
-
pair
Static factory method for creating pairs.- Type Parameters:
A- type of the first valueB- type of the second value- Parameters:
first- the first value of the pairsecond- the second value of the pair- Returns:
- a new pair consisting of the first and second values
-
fromMapEntry
-