Class Pair<A,B>
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.diff.Pair<A,B>
-
- Direct Known Subclasses:
Couple
,Pair.NonNull
public class Pair<A,B> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Pair.NonNull<A,B>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A,B>
Pair<A,B>create(A first, B second)
static <A,B>
Function<A,Pair<A,B>>createFunction(B value)
static <A,B>
Pair.NonNull<A,B>createNonNull(A first, B second)
static <A,B>
Pair<A,B>empty()
boolean
equals(Object o)
A
getFirst()
static <T> T
getFirst(Pair<T,?> pair)
B
getSecond()
static <T> T
getSecond(Pair<?,T> pair)
int
hashCode()
static <A,B>
Pair<A,B>pair(A first, B second)
String
toString()
-
-
-
Method Detail
-
create
@NotNull public static <A,B> Pair<A,B> create(A first, B second)
-
createNonNull
@NotNull public static <A,B> Pair.NonNull<A,B> createNonNull(@NotNull A first, @NotNull B second)
-
pair
@NotNull public static <A,B> Pair<A,B> pair(A first, B second)
-
getFirst
public static <T> T getFirst(@Nullable Pair<T,?> pair)
-
getSecond
public static <T> T getSecond(@Nullable Pair<?,T> pair)
-
empty
public static <A,B> Pair<A,B> empty()
-
getFirst
public final A getFirst()
-
getSecond
public final B getSecond()
-
-