Package de.aristaflow.ilm.util
Interface IoToUncheckedBiConsumer<I1,I2>
-
- Type Parameters:
I1
- The type of the first argument of theBiConsumer
.I2
- The type of the second argument of theBiConsumer
.
- 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 IoToUncheckedBiConsumer<I1,I2>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(I1 i1, I2 i2)
static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
.static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, String msg)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
with the message of the designated supplier.static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, BiFunction<? super In1,? super In2,String> msgBiFunc)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
with the message of the designated supplier.static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, Supplier<String> msgSupp)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
with the message of the designated supplier.
-
-
-
Method Detail
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
.- Type Parameters:
In1
- The type of the first argument of theBiConsumer
.In2
- The type of the second argument of theBiConsumer
.- Parameters:
wrapped
- TheBiConsumer
throwing anIOException
.- Returns:
- A
BiConsumer
throwing anUncheckedIOException
.
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, String msg)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
with the message of the designated supplier.- Type Parameters:
In1
- The type of the first argument of theBiConsumer
.In2
- The type of the second argument of theBiConsumer
.- Parameters:
wrapped
- TheBiConsumer
throwing anIOException
.msg
- The message for the wrappingUncheckedIOException
. If this isnull
, the wrappingUncheckedIOException
will not have a message.- Returns:
- A
BiConsumer
throwing anUncheckedIOException
.
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, Supplier<String> msgSupp)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
with the message of the designated supplier.- Type Parameters:
In1
- The type of the first argument of theBiConsumer
.In2
- The type of the second argument of theBiConsumer
.- Parameters:
wrapped
- TheBiConsumer
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
BiConsumer
throwing anUncheckedIOException
.
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, BiFunction<? super In1,? super In2,String> msgBiFunc)
Wraps the designatedBiConsumer
by wrapping the thrownIOException
in aUncheckedIOException
with the message of the designated supplier.- Type Parameters:
In1
- The type of the first argument of theBiConsumer
.In2
- The type of the second argument of theBiConsumer
.- Parameters:
wrapped
- TheBiConsumer
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
BiConsumer
throwing anUncheckedIOException
.
-
accept
void accept(I1 i1, I2 i2) throws IOException
- Throws:
IOException
- See Also:
BiConsumer.accept(Object, Object)
-
-