Interface IoToUncheckedBiFunction<I1,​I2,​O>

  • Type Parameters:
    I1 - The type of the first argument of the BiFunction.
    I2 - The type of the second argument of the BiFunction.
    O - The type of the result of the BiFunction.
    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>
    A BiFunction that wraps a thrown IOException in a UncheckedIOException.
    • 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 designated BiFunction by wrapping the thrown IOException in a UncheckedIOException.
      static <In1,​In2,​Out>
      BiFunction<In1,​In2,​Out>
      wrap​(IoToUncheckedBiFunction<In1,​In2,​Out> wrapped, String msg)
      Wraps the designated BiFunction by wrapping the thrown IOException in a UncheckedIOException 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 designated BiFunction by wrapping the thrown IOException in a UncheckedIOException 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 designated BiFunction by wrapping the thrown IOException in a UncheckedIOException 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 designated BiFunction by wrapping the thrown IOException in a UncheckedIOException.
        Type Parameters:
        In1 - The type of the first argument of the BiFunction.
        In2 - The type of the second argument of the BiFunction.
        Out - The type of the result of the BiFunction.
        Parameters:
        wrapped - The BiFunction throwing an IOException.
        Returns:
        A BiFunction throwing an UncheckedIOException.
      • wrap

        static <In1,​In2,​Out> BiFunction<In1,​In2,​Out> wrap​(IoToUncheckedBiFunction<In1,​In2,​Out> wrapped,
                                                                                  String msg)
        Wraps the designated BiFunction by wrapping the thrown IOException in a UncheckedIOException with the message of the designated supplier.
        Type Parameters:
        In1 - The type of the first argument of the BiFunction.
        In2 - The type of the second argument of the BiFunction.
        Out - The type of the result of the BiFunction.
        Parameters:
        wrapped - The BiFunction throwing an IOException.
        msg - The message for the wrapping UncheckedIOException. If this is null, the wrapping UncheckedIOException will not have a message.
        Returns:
        A BiFunction throwing an UncheckedIOException.
      • wrap

        static <In1,​In2,​Out> BiFunction<In1,​In2,​Out> wrap​(IoToUncheckedBiFunction<In1,​In2,​Out> wrapped,
                                                                                  Supplier<String> msgSupp)
        Wraps the designated BiFunction by wrapping the thrown IOException in a UncheckedIOException with the message of the designated supplier.
        Type Parameters:
        In1 - The type of the first argument of the BiFunction.
        In2 - The type of the second argument of the BiFunction.
        Out - The type of the result of the BiFunction.
        Parameters:
        wrapped - The BiFunction throwing an IOException.
        msgSupp - The supplier providing a message for the wrapping UncheckedIOException. If this is null or supplies null, the wrapping UncheckedIOException will not have a message.
        Returns:
        A BiFunction throwing an UncheckedIOException.
      • wrap

        static <In1,​In2,​Out> BiFunction<In1,​In2,​Out> wrap​(IoToUncheckedBiFunction<In1,​In2,​Out> wrapped,
                                                                                  BiFunction<? super In1,​? super In2,​String> msgBiFunc)
        Wraps the designated BiFunction by wrapping the thrown IOException in a UncheckedIOException with the message of the designated supplier.
        Type Parameters:
        In1 - The type of the first argument of the BiFunction.
        In2 - The type of the second argument of the BiFunction.
        Out - The type of the result of the BiFunction.
        Parameters:
        wrapped - The BiFunction throwing an IOException.
        msgBiFunc - The BiFunction providing a message for the wrapping UncheckedIOException when applied to the arguments of wrapped. If this is null or supplies null, the wrapping UncheckedIOException will not have a message.
        Returns:
        A BiFunction throwing an UncheckedIOException.