Uses of Interface
ch.powerunit.extensions.exceptions.ConsumerWithException
-
-
Uses of ConsumerWithException in ch.powerunit.extensions.exceptions
Methods in ch.powerunit.extensions.exceptions that return ConsumerWithException Modifier and Type Method Description default ConsumerWithException<T,E>
ConsumerWithException. andThen(ConsumerWithException<? super T,? extends E> after)
Returns a composedConsumerWithException
that performs, in sequence, this operation followed by theafter
operation.static <E extends Exception>
ConsumerWithException<Double,E>DoubleConsumerWithException. asConsumer(DoubleConsumerWithException<E> operation)
Converts aDoubleConsumerWithException
to aConsumerWithException
.default ConsumerWithException<T,E>
FunctionWithException. asConsumer()
Converts aFunctionWithException
to aConsumerWithException
.static <T,R,E extends Exception>
ConsumerWithException<T,E>FunctionWithException. asConsumer(FunctionWithException<T,R,E> function)
Converts aFunctionWithException
to aConsumerWithException
.static <E extends Exception>
ConsumerWithException<Integer,E>IntConsumerWithException. asConsumer(IntConsumerWithException<E> operation)
Converts aIntConsumerWithException
to aConsumerWithException
.static <E extends Exception>
ConsumerWithException<Long,E>LongConsumerWithException. asConsumer(LongConsumerWithException<E> operation)
Converts aLongConsumerWithException
to aConsumerWithException
.static <T,E extends Exception>
ConsumerWithException<T,E>ConsumerWithException. failing(Supplier<E> exceptionBuilder)
Returns aConsumerWithException
that always throw exception.Methods in ch.powerunit.extensions.exceptions with parameters of type ConsumerWithException Modifier and Type Method Description default ConsumerWithException<T,E>
ConsumerWithException. andThen(ConsumerWithException<? super T,? extends E> after)
Returns a composedConsumerWithException
that performs, in sequence, this operation followed by theafter
operation.static <T> org.apache.commons.collections4.Closure<T>
CommonsCollections4Helper. asClosure(ConsumerWithException<T,?> consumer)
Transforms aConsumerWithException
to the one from commons-collections.static <T,R,E extends Exception>
FunctionWithException<T,R,E>ConsumerWithException. asFunction(ConsumerWithException<T,E> consumer)
Converts aConsumerWithException
to aFunctionWithException
returningnull
.static <T,E extends Exception>
Consumer<T>ConsumerWithException. ignored(ConsumerWithException<T,E> consumer)
Converts aConsumerWithException
to a liftedConsumer
ignoring exception.static <T,E extends Exception>
Consumer<T>ConsumerWithException. lifted(ConsumerWithException<T,E> consumer)
Converts aConsumerWithException
to a liftedConsumer
ignoring exception.static <T,E extends Exception>
Function<T,CompletionStage<Void>>ConsumerWithException. staged(ConsumerWithException<T,E> consumer)
Converts aConsumerWithException
to a stagedFunction
.static <T,E extends Exception>
Consumer<T>ConsumerWithException. unchecked(ConsumerWithException<T,E> consumer)
Converts aConsumerWithException
to aConsumer
that wraps exception toRuntimeException
.static <T,E extends Exception>
Consumer<T>ConsumerWithException. unchecked(ConsumerWithException<T,E> consumer, Function<Exception,RuntimeException> exceptionMapper)
Converts aConsumerWithException
to aConsumer
that wraps exception toRuntimeException
by using the provided mapping function.
-