Package de.aristaflow.ilm.util
Interface IoToUncheckedBiFunction<I1,I2,O>
- Type Parameters:
I1- The type of the first argument of theBiFunction.I2- The type of the second argument of theBiFunction.O- The type of the result of theBiFunction.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <In1,In2, Out>
BiFunction<In1,In2, Out> wrap(IoToUncheckedBiFunction<In1, In2, Out> wrapped) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOException.static <In1,In2, Out>
BiFunction<In1,In2, Out> wrap(IoToUncheckedBiFunction<In1, In2, Out> wrapped, String msg) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.static <In1,In2, Out>
BiFunction<In1,In2, Out> wrap(IoToUncheckedBiFunction<In1, In2, Out> wrapped, BiFunction<? super In1, ? super In2, String> msgBiFunc) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.static <In1,In2, Out>
BiFunction<In1,In2, Out> wrap(IoToUncheckedBiFunction<In1, In2, Out> wrapped, Supplier<String> msgSupp) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.
-
Method Details
-
wrap
Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOException.- Type Parameters:
In1- The type of the first argument of theBiFunction.In2- The type of the second argument of theBiFunction.Out- The type of the result of theBiFunction.- Parameters:
wrapped- TheBiFunctionthrowing anIOException.- Returns:
- A
BiFunctionthrowing anUncheckedIOException.
-
wrap
static <In1,In2, BiFunction<In1,Out> In2, wrapOut> (IoToUncheckedBiFunction<In1, In2, Out> wrapped, String msg) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.- Type Parameters:
In1- The type of the first argument of theBiFunction.In2- The type of the second argument of theBiFunction.Out- The type of the result of theBiFunction.- Parameters:
wrapped- TheBiFunctionthrowing anIOException.msg- The message for the wrappingUncheckedIOException. If this isnull, the wrappingUncheckedIOExceptionwill not have a message.- Returns:
- A
BiFunctionthrowing anUncheckedIOException.
-
wrap
static <In1,In2, BiFunction<In1,Out> In2, wrapOut> (IoToUncheckedBiFunction<In1, In2, Out> wrapped, Supplier<String> msgSupp) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.- Type Parameters:
In1- The type of the first argument of theBiFunction.In2- The type of the second argument of theBiFunction.Out- The type of the result of theBiFunction.- Parameters:
wrapped- TheBiFunctionthrowing anIOException.msgSupp- The supplier providing a message for the wrappingUncheckedIOException. If this isnullor suppliesnull, the wrappingUncheckedIOExceptionwill not have a message.- Returns:
- A
BiFunctionthrowing anUncheckedIOException.
-
wrap
static <In1,In2, BiFunction<In1,Out> In2, wrapOut> (IoToUncheckedBiFunction<In1, In2, Out> wrapped, BiFunction<? super In1, ? super In2, String> msgBiFunc) Wraps the designatedBiFunctionby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.- Type Parameters:
In1- The type of the first argument of theBiFunction.In2- The type of the second argument of theBiFunction.Out- The type of the result of theBiFunction.- Parameters:
wrapped- TheBiFunctionthrowing anIOException.msgBiFunc- TheBiFunctionproviding a message for the wrappingUncheckedIOExceptionwhen applied to the arguments ofwrapped. If this isnullor suppliesnull, the wrappingUncheckedIOExceptionwill not have a message.- Returns:
- A
BiFunctionthrowing anUncheckedIOException.
-
apply
- Throws:
IOException- See Also:
-