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
public final class Pair<A,B> extends Object
A simple Pair class
-
-
Constructor Summary
Constructors Constructor Description Pair(A first, B second)
Deprecated.since 4.3 usemake(Object, Object)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Pair obj)
boolean
equals(Object o)
A
getFirst()
B
getSecond()
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>>pairOfComparableComparator()
String
toString()
-
-
-
Constructor Detail
-
Pair
@Deprecated public Pair(A first, B second)
Deprecated.since 4.3 usemake(Object, Object)
- Parameters:
first
-second
-
-
-
Method Detail
-
getFirst
@Nullable public A getFirst()
-
getSecond
@Nullable public B getSecond()
-
compareTo
public int compareTo(Pair obj)
-
make
@NotNull public static <A,B> @NotNull Pair<A,B> make(@Nullable A first, @Nullable B second)
-
pairOfComparableComparator
public static <T extends Comparable,U extends Comparable> Comparator<Pair<T,U>> pairOfComparableComparator()
-
-