Interface ThrowingFunction<T,​R>

  • 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 ThrowingFunction<T,​R>
    Like Function but can throw checked exceptions.
    • Method Detail

      • apply

        R apply​(T var1)
         throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • wrap

        static <T,​R> java.util.function.Function<T,​R> wrap​(ThrowingFunction<T,​R> fn)
      • asFunction

        default java.util.function.Function<T,​R> asFunction()