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 voidaccept(I1 i1, I2 i2)static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped)Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOException.static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, String msg)Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith 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 designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.static <In1,In2>
BiConsumer<In1,In2>wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, Supplier<String> msgSupp)Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith the message of the designated supplier.
-
-
-
Method Detail
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped)
Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOException.- Type Parameters:
In1- The type of the first argument of theBiConsumer.In2- The type of the second argument of theBiConsumer.- Parameters:
wrapped- TheBiConsumerthrowing anIOException.- Returns:
- A
BiConsumerthrowing anUncheckedIOException.
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, String msg)
Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith 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- TheBiConsumerthrowing anIOException.msg- The message for the wrappingUncheckedIOException. If this isnull, the wrappingUncheckedIOExceptionwill not have a message.- Returns:
- A
BiConsumerthrowing anUncheckedIOException.
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, Supplier<String> msgSupp)
Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith 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- TheBiConsumerthrowing anIOException.msgSupp- The supplier providing a message for the wrappingUncheckedIOException. If this isnullor suppliesnull, the wrappingUncheckedIOExceptionwill not have a message.- Returns:
- A
BiConsumerthrowing anUncheckedIOException.
-
wrap
static <In1,In2> BiConsumer<In1,In2> wrap(IoToUncheckedBiConsumer<In1,In2> wrapped, BiFunction<? super In1,? super In2,String> msgBiFunc)
Wraps the designatedBiConsumerby wrapping the thrownIOExceptionin aUncheckedIOExceptionwith 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- TheBiConsumerthrowing 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
BiConsumerthrowing anUncheckedIOException.
-
accept
void accept(I1 i1, I2 i2) throws IOException
- Throws:
IOException- See Also:
BiConsumer.accept(Object, Object)
-
-