| 程序包 | 说明 |
|---|---|
| com.jn.langx.util.collection | |
| com.jn.langx.util.collection.tree | |
| com.jn.langx.util.concurrent.completion | |
| com.jn.langx.util.function |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E,R> R |
Collects.collect(Object anyObject,
Supplier0<R> containerFactory,
Consumer2<R,E> consumer) |
static <E,C extends Collection<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer)
Iterate every element
|
static <E,C extends Collection<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
void |
Pipeline.forEach(Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate) |
static <E> void |
Collects.forEach(E[] array,
Consumer2<Integer,E> consumer)
Iterate every element
|
static <E> void |
Collects.forEach(E[] array,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.forEach(M map,
Consumer2<K,V> consumer)
Iterate every element
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.forEach(M map,
Consumer2<K,V> consumer,
Predicate2<K,V> breakPredicate)
Iterate every element
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Tree.forEach(Consumer2<Tree,TreeNode> paramCallback) |
void |
SimpleTree.forEach(Consumer2<Tree,TreeNode> cb) |
void |
CommonTree.forEach(Consumer2<Tree,TreeNode> cb) |
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletionStep<Void> |
CompletionStep.thenAcceptBoth(CompletionStep<? extends U> other,
Consumer2<? super T,? super U> action)
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed with the two
results as arguments to the supplied action.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBoth(CompletionStep<? extends U> other,
Consumer2<? super T,? super U> action) |
<U> CompletionStep<Void> |
CompletionStep.thenAcceptBothAsync(CompletionStep<? extends U> other,
Consumer2<? super T,? super U> action)
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed using this
stage's default asynchronous execution facility, with the two
results as arguments to the supplied action.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStep<? extends U> other,
Consumer2<? super T,? super U> action) |
<U> CompletionStep<Void> |
CompletionStep.thenAcceptBothAsync(CompletionStep<? extends U> other,
Consumer2<? super T,? super U> action,
Executor executor)
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed using the
supplied executor, with the two results as arguments to the
supplied action.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStep<? extends U> other,
Consumer2<? super T,? super U> action,
Executor executor) |
CompletionStep<T> |
CompletionStep.whenComplete(Consumer2<? super T,? super Throwable> action)
Returns a new CompletionStage with the same result or exception as
this stage, that executes the given action when this stage completes.
|
CompletableFuture<T> |
CompletableFuture.whenComplete(Consumer2<? super T,? super Throwable> action) |
CompletionStep<T> |
CompletionStep.whenCompleteAsync(Consumer2<? super T,? super Throwable> action)
Returns a new CompletionStage with the same result or exception as
this stage, that executes the given action using this stage's
default asynchronous execution facility when this stage completes.
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(Consumer2<? super T,? super Throwable> action) |
CompletionStep<T> |
CompletionStep.whenCompleteAsync(Consumer2<? super T,? super Throwable> action,
Executor executor)
Returns a new CompletionStage with the same result or exception as
this stage, that executes the given action using the supplied
Executor when this stage completes.
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(Consumer2<? super T,? super Throwable> action,
Executor executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
Consumer2<C,E> |
Collector.accumulator() |
Copyright © 2019. All rights reserved.