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 O
apply(I1 i1, I2 i2)
static <In1,In2,Out>
BiFunction<In1,In2,Out>wrap(IoToUncheckedBiFunction<In1,In2,Out> wrapped)
Wraps the designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
.static <In1,In2,Out>
BiFunction<In1,In2,Out>wrap(IoToUncheckedBiFunction<In1,In2,Out> wrapped, String msg)
Wraps the designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
with 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 designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
with 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 designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
with 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 designatedBiFunction
by wrapping the thrownIOException
in 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
- TheBiFunction
throwing anIOException
.- Returns:
- A
BiFunction
throwing anUncheckedIOException
.
-
wrap
static <In1,In2,Out> BiFunction<In1,In2,Out> wrap(IoToUncheckedBiFunction<In1,In2,Out> wrapped, String msg)
Wraps the designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
with 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
- TheBiFunction
throwing anIOException
.msg
- The message for the wrappingUncheckedIOException
. If this isnull
, the wrappingUncheckedIOException
will not have a message.- Returns:
- A
BiFunction
throwing anUncheckedIOException
.
-
wrap
static <In1,In2,Out> BiFunction<In1,In2,Out> wrap(IoToUncheckedBiFunction<In1,In2,Out> wrapped, Supplier<String> msgSupp)
Wraps the designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
with 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
- TheBiFunction
throwing anIOException
.msgSupp
- The supplier providing a message for the wrappingUncheckedIOException
. If this isnull
or suppliesnull
, the wrappingUncheckedIOException
will not have a message.- Returns:
- A
BiFunction
throwing 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 designatedBiFunction
by wrapping the thrownIOException
in aUncheckedIOException
with 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
- TheBiFunction
throwing anIOException
.msgBiFunc
- TheBiFunction
providing a message for the wrappingUncheckedIOException
when applied to the arguments ofwrapped
. If this isnull
or suppliesnull
, the wrappingUncheckedIOException
will not have a message.- Returns:
- A
BiFunction
throwing anUncheckedIOException
.
-
apply
O apply(I1 i1, I2 i2) throws IOException
- Throws:
IOException
- See Also:
BiFunction.apply(Object, Object)
-
-