Uses of Interface
ch.powerunit.extensions.exceptions.BiFunctionWithException
-
-
Uses of BiFunctionWithException in ch.powerunit.extensions.exceptions
Subinterfaces of BiFunctionWithException in ch.powerunit.extensions.exceptions Modifier and Type Interface Description interface
BinaryOperatorWithException<T,E extends Exception>
Represents an operation upon two operands of the same type, that may throw exception, producing a result of the same type as the operands.Methods in ch.powerunit.extensions.exceptions that return BiFunctionWithException Modifier and Type Method Description default <V> BiFunctionWithException<T,U,V,E>
BiFunctionWithException. andThen(FunctionWithException<? super R,? extends V,? extends E> after)
Returns a composedFunctionWithException
that first applies thisFunctionWithException
to its input, and then applies theafter
FunctionWithException
to the result.default <R> BiFunctionWithException<T,U,R,E>
BiConsumerWithException. asBiFunction()
Converts aBiConsumerWithException
to aBiFunctionWithException
returningnull
.static <T,U,R,E extends Exception>
BiFunctionWithException<T,U,R,E>BiConsumerWithException. asBiFunction(BiConsumerWithException<T,U,E> consumer)
Converts aBiConsumerWithException
to aBiFunctionWithException
returningnull
.default <U> BiFunctionWithException<T,U,R,E>
FunctionWithException. asBiFunction()
Converts aFunctionWithException
to aBiFunctionWithException
.static <T,U,R,E extends Exception>
BiFunctionWithException<T,U,R,E>FunctionWithException. asBiFunction(FunctionWithException<T,R,E> function)
Converts aFunctionWithException
to aBiFunctionWithException
.static <T,U,R,E extends Exception>
BiFunctionWithException<T,U,R,E>BiFunctionWithException. failing(Supplier<E> exceptionBuilder)
Returns aFunctionWithException
that always throw exception.Methods in ch.powerunit.extensions.exceptions with parameters of type BiFunctionWithException Modifier and Type Method Description static <T,U,R,E extends Exception>
BiConsumerWithException<T,U,E>BiFunctionWithException. asBiConsumer(BiFunctionWithException<T,U,R,E> function)
Converts aBiFunctionWithException
to aBiConsumerWithException
.static <T,U,R,E extends Exception>
FunctionWithException<T,R,E>BiFunctionWithException. asFunction(BiFunctionWithException<T,U,R,E> function, U u)
Converts aBiFunctionWithException
to aFunctionWithException
.static <T,U,R,E extends Exception>
BiFunction<T,U,R>BiFunctionWithException. ignored(BiFunctionWithException<T,U,R,E> function)
Converts aBiFunctionWithException
to a liftedBiFunction
returningnull
in case of exception.static <T,U,R,E extends Exception>
BiFunction<T,U,R>BiFunctionWithException. ignored(BiFunctionWithException<T,U,R,E> function, R defaultValue)
Converts aBiFunctionWithException
to a liftedBiFunction
returning a default in case of exception.static <T,U,R,E extends Exception>
BiFunction<T,U,Optional<R>>BiFunctionWithException. lifted(BiFunctionWithException<T,U,R,E> function)
Converts aBiFunctionWithException
to a liftedBiFunction
usingOptional
as return value.static <T,U,R,E extends Exception>
BiFunction<T,U,CompletionStage<R>>BiFunctionWithException. staged(BiFunctionWithException<T,U,R,E> function)
Convert thisBiFunctionWithException
to a liftedBiFunction
returnCompletionStage
as return value.static <T,U,R,E extends Exception>
BiFunction<T,U,R>BiFunctionWithException. unchecked(BiFunctionWithException<T,U,R,E> function)
Converts aBiFunctionWithException
to aBiFunction
that convert exception toRuntimeException
.static <T,U,R,E extends Exception>
BiFunction<T,U,R>BiFunctionWithException. unchecked(BiFunctionWithException<T,U,R,E> function, Function<Exception,RuntimeException> exceptionMapper)
Converts aBiFunctionWithException
to aBiFunction
that convert exception toRuntimeException
by using the provided mapping function.
-