A
- first item of pairB
- second item of pairpublic final class Pair<A,B> extends Object
Constructor and Description |
---|
Pair(A first,
B second)
Deprecated.
since 4.3 use
make(Object, Object) |
Modifier and Type | Method and 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> |
pairOfComparableComparator() |
String |
toString() |
@Deprecated public Pair(A first, B second)
make(Object, Object)
first
- second
- @Nullable public A getFirst()
@Nullable public B getSecond()
public int compareTo(Pair obj)
@NotNull public static <A,B> @NotNull Pair<A,B> make(@Nullable A first, @Nullable B second)
public static <T extends Comparable,U extends Comparable> Comparator<Pair<T,U>> pairOfComparableComparator()
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.