-
Method Summary
boolean
static <L,
R> @NotNull Pair<L,R>
static <L,
R> @NotNull Pair<L,R>
-
Method Details
-
of
@NotNull
static <L,
R> @NotNull Pair<L,R> of(L left,
R right)
-
of
@NotNull
static <L,
R> @NotNull Pair<L,R> of(@NotNull
Map.Entry<L,R> entry)
-
equals
boolean equals(@NotNull
@NotNull Pair<?,?> pair)
-
-
-
withLeft
@NotNull
<L1> @NotNull Pair<L1,R> withLeft(L1 newValue)
-
withRight
@NotNull
<R1> @NotNull Pair<L,R1> withRight(R1 newValue)
-
clone
@NotNull
@NotNull Pair<L,R> clone()
Склонировать пару.
- Returns:
- новая склонированая пара
-
deepClone
@NotNull
@NotNull Pair<L,R> deepClone()
Склонировать пару.
Также, в отличие от clone(), клонируется L и R, если
они наследуют Cloneable.
- Returns:
- новая склонированая пара