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.
@FunctionalInterface public interface IoToUncheckedBiFunction<I1,I2,O>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Oapply(I1 i1, I2 i2)static <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 Detail
-
wrap
static <In1,In2,Out> BiFunction<In1,In2,Out> wrap(IoToUncheckedBiFunction<In1,In2,Out> wrapped)
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,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.- 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,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.- 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,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.- 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
O apply(I1 i1, I2 i2) throws IOException
- Throws:
IOException- See Also:
BiFunction.apply(Object, Object)
-
-