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 composedConsumerWithExceptionthat performs, in sequence, this operation followed by theafteroperation.static <E extends Exception>
ConsumerWithException<Double,E>DoubleConsumerWithException. asConsumer(DoubleConsumerWithException<E> operation)Converts aDoubleConsumerWithExceptionto aConsumerWithException.default ConsumerWithException<T,E>FunctionWithException. asConsumer()Converts aFunctionWithExceptionto aConsumerWithException.static <T,R,E extends Exception>
ConsumerWithException<T,E>FunctionWithException. asConsumer(FunctionWithException<T,R,E> function)Converts aFunctionWithExceptionto aConsumerWithException.static <E extends Exception>
ConsumerWithException<Integer,E>IntConsumerWithException. asConsumer(IntConsumerWithException<E> operation)Converts aIntConsumerWithExceptionto aConsumerWithException.static <E extends Exception>
ConsumerWithException<Long,E>LongConsumerWithException. asConsumer(LongConsumerWithException<E> operation)Converts aLongConsumerWithExceptionto aConsumerWithException.static <T,E extends Exception>
ConsumerWithException<T,E>ConsumerWithException. failing(Supplier<E> exceptionBuilder)Returns aConsumerWithExceptionthat 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 composedConsumerWithExceptionthat performs, in sequence, this operation followed by theafteroperation.static <T> org.apache.commons.collections4.Closure<T>CommonsCollections4Helper. asClosure(ConsumerWithException<T,?> consumer)Transforms aConsumerWithExceptionto the one from commons-collections.static <T,R,E extends Exception>
FunctionWithException<T,R,E>ConsumerWithException. asFunction(ConsumerWithException<T,E> consumer)Converts aConsumerWithExceptionto aFunctionWithExceptionreturningnull.static <T,E extends Exception>
Consumer<T>ConsumerWithException. ignored(ConsumerWithException<T,E> consumer)Converts aConsumerWithExceptionto a liftedConsumerignoring exception.static <T,E extends Exception>
Consumer<T>ConsumerWithException. lifted(ConsumerWithException<T,E> consumer)Converts aConsumerWithExceptionto a liftedConsumerignoring exception.static <T,E extends Exception>
Function<T,CompletionStage<Void>>ConsumerWithException. staged(ConsumerWithException<T,E> consumer)Converts aConsumerWithExceptionto a stagedFunction.static <T,E extends Exception>
Consumer<T>ConsumerWithException. unchecked(ConsumerWithException<T,E> consumer)Converts aConsumerWithExceptionto aConsumerthat wraps exception toRuntimeException.static <T,E extends Exception>
Consumer<T>ConsumerWithException. unchecked(ConsumerWithException<T,E> consumer, Function<Exception,RuntimeException> exceptionMapper)Converts aConsumerWithExceptionto aConsumerthat wraps exception toRuntimeExceptionby using the provided mapping function.
-