| Package | Description |
|---|---|
| org.davidmoten.kool | |
| org.davidmoten.kool.function | |
| org.davidmoten.kool.internal.operators.maybe | |
| org.davidmoten.kool.internal.operators.stream |
| Modifier and Type | Field and Description |
|---|---|
static Consumer<Closeable> |
Stream.CLOSEABLE_CLOSER |
| Modifier and Type | Method and Description |
|---|---|
default Stream<T> |
Stream.doOnError(Consumer<? super Throwable> consumer) |
default Maybe<T> |
Maybe.doOnError(Consumer<? super Throwable> consumer) |
default Stream<T> |
Stream.doOnNext(Consumer<? super T> consumer) |
default Maybe<T> |
Maybe.doOnValue(Consumer<? super T> consumer) |
default <R> Stream<R> |
Stream.flatMap(BiConsumer<? super T,? super Consumer<R>> generator,
Consumer<? super Consumer<R>> onFinish) |
default void |
Stream.forEach2(Consumer<? super T> consumer) |
static <T> Stream<T> |
Stream.generate(Consumer<Emitter<T>> consumer) |
default Stream<T> |
Stream.ignoreDisposalError(Consumer<? super Throwable> action) |
static <R,T> Stream<T> |
Stream.using(Callable<? extends R> resourceFactory,
Function<? super R,? extends Stream<? extends T>> streamFactory,
Consumer<? super R> closer) |
| Modifier and Type | Method and Description |
|---|---|
default <R> Stream<R> |
Stream.flatMap(BiConsumer<? super T,? super Consumer<R>> generator)
Using a consumer to report items to downstream is more performant (fewer
allocations) because a Stream object doesn't have to be created for each
upstream element.
|
default <R> Stream<R> |
Stream.flatMap(BiConsumer<? super T,? super Consumer<R>> generator,
Consumer<? super Consumer<R>> onFinish) |
default <R> Stream<R> |
Stream.flatMap(BiConsumer<? super T,? super Consumer<R>> generator,
Consumer<? super Consumer<R>> onFinish) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Consumer<T> |
Consumers.doNothing() |
| Constructor and Description |
|---|
MaybeDoOnError(Consumer<? super Throwable> consumer,
Maybe<T> maybe) |
MaybeDoOnValue(Consumer<? super T> consumer,
Maybe<T> maybe) |
| Constructor and Description |
|---|
DoOnError(Consumer<? super Throwable> consumer,
Stream<T> source) |
DoOnNext(Consumer<? super T> consumer,
StreamIterable<T> source) |
FlatMapGenerator(BiConsumer<? super T,? super Consumer<R>> generator,
Consumer<? super Consumer<R>> onFinish,
Stream<T> stream) |
Generate(Consumer<? super Emitter<T>> consumer) |
IgnoreDisposalError(Stream<T> stream,
Consumer<? super Throwable> consumer) |
Using(Callable<? extends R> resourceFactory,
Function<? super R,? extends Stream<? extends T>> streamFactory,
Consumer<? super R> closer) |
| Constructor and Description |
|---|
FlatMapGenerator(BiConsumer<? super T,? super Consumer<R>> generator,
Consumer<? super Consumer<R>> onFinish,
Stream<T> stream) |
FlatMapGenerator(BiConsumer<? super T,? super Consumer<R>> generator,
Consumer<? super Consumer<R>> onFinish,
Stream<T> stream) |
Copyright © 2018–2023. All rights reserved.