Modifier and Type | Method and Description |
---|---|
default CheckedConsumer<T,E> |
CheckedConsumer.andThen(CheckedConsumer<? super T,? extends E> after)
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
Exceptional.accept(CheckedConsumer<T,?> consumer,
T value)
Invokes
accept(Object) catching any checked
Exception s rethrowing as unchecked. |
default CheckedConsumer<T,E> |
CheckedConsumer.andThen(CheckedConsumer<? super T,? extends E> after)
|
static <T,E extends Exception> |
Closing.autoClosing(T instance,
CheckedConsumer<T,E> closeMethod)
Reshape instances to fit try-catch autoclose.
|
static <C extends AutoCloseable> |
Closing.closeAfterAccepting(C closeable,
CheckedConsumer<C,?> consume)
Consumes the
closeable before closing. |
static <C extends AutoCloseable,T> |
Closing.closeAfterAccepting(CheckedFunction<T,C,?> create,
T t,
CheckedConsumer<C,?> consume)
Applies the
create function to t , resulting in a AutoCloseable which is closed after
being consumed. |
default void |
EmeticStream.forEach(CheckedConsumer<? super T,?> action) |
static <T> void |
Exceptional.forEach(Iterable<T> iterable,
CheckedConsumer<T,?> consumer)
Invokes the
Iterable.forEach(Consumer) method having unchecked the consumer |
default void |
EmeticStream.forEachOrdered(CheckedConsumer<? super T,?> action) |
default EmeticStream<T> |
EmeticStream.peek(CheckedConsumer<? super T,?> action) |
static <T> Consumer<T> |
Exceptional.uncheckConsumer(CheckedConsumer<T,?> consumer)
Converts
CheckedConsumer to Consumer |
Copyright © 2016–2018 earcam. All rights reserved.