Uses of Interface
com.google.mu.function.CheckedConsumer
Package
Description
Some extra functional interfaces.
StringFormat, Substring, Optionals and more...
BiStream, BiCollector, MoreStreams, MoreCollectors etc.
-
Uses of CheckedConsumer in com.google.mu.function
Modifier and TypeMethodDescriptiondefault CheckedConsumer
<T, E> CheckedConsumer.andThen
(CheckedConsumer<? super T, E> that) Returns a newCheckedConsumer
that also passes the input tothat
.Modifier and TypeMethodDescriptiondefault CheckedConsumer
<T, E> CheckedConsumer.andThen
(CheckedConsumer<? super T, E> that) Returns a newCheckedConsumer
that also passes the input tothat
. -
Uses of CheckedConsumer in com.google.mu.util
Modifier and TypeMethodDescriptionMaybe.catching
(CheckedConsumer<? super E, ? extends X> handler) Deprecated.Catches and handles exception withhandler
, and then skips it in the returnedStream
.Optionals.ifPresent
(Optional<T> optional, CheckedConsumer<? super T, E> consumer) Invokesconsumer
ifoptional
is present. -
Uses of CheckedConsumer in com.google.mu.util.stream
Modifier and TypeMethodDescriptionstatic <T,
E extends Throwable>
voidMoreStreams.iterateThrough
(Stream<? extends T> stream, CheckedConsumer<? super T, E> consumer) Iterates throughstream
sequentially and passes each element toconsumer
with exceptions propagated.