java.lang.Object
com.intellij.openapi.util.Pair<A,B>
- 直接已知子类:
Couple,Pair.NonNull
Generic wrapper around two related values.
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <A extends Comparable<? super A>,B>
Comparator<Pair<A,B>> static <A,B extends Comparable<? super B>>
Comparator<Pair<A,B>> static <A,B> @NotNull Pair<A, B> create(A first, B second) createFunction(B value) static <A,B> @NotNull Pair.NonNull<A, B> createNonNull(A first, B second) static <A,B> @NotNull Pair<A, B> empty()final booleanfinal AgetFirst()static <T> Tfinal Bstatic <T> TinthashCode()static <A,B> @NotNull Pair<A, B> pair(A first, B second) toString()
-
字段详细资料
-
first
-
second
-
-
构造器详细资料
-
Pair
- 另请参阅:
-
-
方法详细资料
-
create
-
createNonNull
@NotNull public static <A,B> @NotNull Pair.NonNull<A,B> createNonNull(@NotNull A first, @NotNull B second) -
pair
-
createFunction
-
getFirst
-
getSecond
-
empty
-
getFirst
-
getSecond
-
equals
-
hashCode
public int hashCode() -
toString
-
comparingByFirst
- 类型参数:
A- first value type (Comparable)B- second value type- 返回:
- comparator that compares pair values by first value
-
comparingBySecond
- 类型参数:
A- first value typeB- second value type (Comparable)- 返回:
- comparator that compares pair values by second value
-