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
A simple Pair class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getFirst()
int
hashCode()
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)