public interface ResultStream<P>
| 限定符和类型 | 方法和说明 |
|---|---|
ResultStream<P> |
exceptionally(Function<Throwable,? extends P> fn) |
ResultStream<Void> |
thenAccept(@NotNull ResultConsumer<? extends P> consumer)
增加后继结果处理节点
|
ResultStream<Void> |
thenAcceptAsync(@NotNull ResultConsumer<? extends P> consumer)
增加后继结果处理节点,异步执行
|
<R> ResultStream<R> |
thenApply(@NotNull ResultProcessor<R,? extends P> processor)
增加后继结果处理节点
|
<R> ResultStream<R> |
thenApplyAsync(@NotNull ResultProcessor<R,? extends P> processor)
增加后继结果处理节点,异步执行
|
<R> ResultStream<R> thenApply(@NotNull @NotNull ResultProcessor<R,? extends P> processor)
R - 返回值类型processor - 结果处理器<R> ResultStream<R> thenApplyAsync(@NotNull @NotNull ResultProcessor<R,? extends P> processor)
R - 返回值类型processor - 结果处理器ResultStream<Void> thenAccept(@NotNull @NotNull ResultConsumer<? extends P> consumer)
consumer - 结果处理器ResultStream<Void> thenAcceptAsync(@NotNull @NotNull ResultConsumer<? extends P> consumer)
consumer - 结果处理器ResultStream<P> exceptionally(Function<Throwable,? extends P> fn)
Copyright © 2021. All rights reserved.