Package com.atlassian.bamboo.utils
Class Pair<A,B>
java.lang.Object
com.atlassian.bamboo.utils.Pair<A,B>
- Type Parameters:
A- first item of pairB- second item of pair Since 10.2, the recommended replacement isPairthat does not allow null values.
A simple Pair class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetFirst()inthashCode()static <A,B> @NotNull Pair<A, B> make(A first, B second) static <T extends Comparable,U extends Comparable>
Comparator<Pair<T,U>> toString()
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Pair
Deprecated.since 4.3 usemake(Object, Object)- Parameters:
first-second-
-
-
Method Details
-
getFirst
-
getSecond
-
compareTo
-
equals
-
hashCode
public int hashCode() -
make
-
pairOfComparableComparator
public static <T extends Comparable,U extends Comparable> Comparator<Pair<T,U>> pairOfComparableComparator() -
toString
-
make(Object, Object)