Interface FunctionWithException<T,​R>

  • Type Parameters:
    T - the type of the argument
    R - the result type
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Deprecated
    @FunctionalInterface
    public interface FunctionWithException<T,​R>
    Deprecated.
    Function interface that allows exceptions.
    • Method Detail

      • apply

        R apply​(T t)
         throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • orElseThrow

        default java.util.function.Function<T,​R> orElseThrow()
        Deprecated.
      • orElse

        default java.util.function.Function<T,​R> orElse​(R orElse)
        Deprecated.
      • orElseGet

        default java.util.function.Function<T,​R> orElseGet​(java.util.function.Supplier<? extends R> orElseGet)
        Deprecated.
      • asFunction

        static <T,​R> java.util.function.Function<T,​R> asFunction​(FunctionWithException<T,​R> unchecked)
        Deprecated.
      • asFunctionOrElse

        static <T,​R> java.util.function.Function<T,​R> asFunctionOrElse​(FunctionWithException<T,​R> unchecked,
                                                                                   R orElse)
        Deprecated.
      • asFunctionOrElseGet

        static <T,​R> java.util.function.Function<T,​R> asFunctionOrElseGet​(FunctionWithException<T,​R> unchecked,
                                                                                      java.util.function.Supplier<? extends R> orElseGet)
        Deprecated.