| 限定符和类型 | 方法和说明 |
|---|---|
A |
getValueOne()
获取第一个元素
|
B |
getValueTwo()
获取第二个元素
|
static <A,B> Pair<A,B> |
of(A a,
B b)
初始化二元运算符
|
String |
toString() |
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toListclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic static <A,B> Pair<A,B> of(A a, B b)
A - 泛型1B - 泛型2a - 第一个元素b - 第二个元素public A getValueOne()
IValueOnegetValueOne 在接口中 IValueOne<A>public B getValueTwo()
IValueTwogetValueTwo 在接口中 IValueTwo<B>Copyright © 2024. All rights reserved.