类的使用
net.dongliu.commons.collection.Pair
-
使用Pair的程序包 程序包 说明 net.dongliu.commons.collection Utils for collection.net.dongliu.commons.concurrent Utils for concurrentnet.dongliu.commons.sequence -
-
net.dongliu.commons.collection中Pair的使用
返回Pair的net.dongliu.commons.collection中的方法 修饰符和类型 方法 说明 static <K,V>
Pair<K,V>Pair. of(K key, V value)Create a new pairPair<K,V>Pair. withFirst(K first)Create one new pair, replace the first value with new value.Pair<K,V>Pair. withKey(K newKey)Create one new pair, replace the key with newKey.Pair<K,V>Pair. withSecond(V second)Create one new pair, replace the second value with new value.Pair<K,V>Pair. withValue(V newValue)Create one new pair, replace the value with newValue. -
net.dongliu.commons.concurrent中Pair的使用
返回变量类型为Pair的类型的net.dongliu.commons.concurrent中的方法 修饰符和类型 方法 说明 static <S,T>
java.util.concurrent.CompletableFuture<Pair<S,T>>Futures. combine(java.util.concurrent.CompletableFuture<S> future1, java.util.concurrent.CompletableFuture<T> future2)Combine two futures to one future return a Pair Future. -
net.dongliu.commons.sequence中Pair的使用
返回变量类型为Pair的类型的net.dongliu.commons.sequence中的方法 修饰符和类型 方法 说明 static <S,T>
Sequence<Pair<S,T>>Sequence. zip(Sequence<@NonNull S> s1, Sequence<@NonNull T> s2)Returns a sequence of values built from the elements of this sequence and the other sequence with the same index.
-