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 classPair.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()booleanequals(Object o)AgetFirst()static <T> TgetFirst(Pair<T,?> pair)BgetSecond()static <T> TgetSecond(Pair<?,T> pair)inthashCode()static <A,B>
Pair<A,B>pair(A first, B second)StringtoString()
-
-
-
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()
-
-