Interface ThrowingFunction<T,​R>

  • All Superinterfaces:
    Function<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>
    extends Function<T,​R>
    • Method Detail

      • acceptThrows

        R acceptThrows​(T t)
                throws Exception
        Performs this operation on the given argument.
        Parameters:
        t - the input argument
        Throws:
        Throwable - when the underlying apply throws
        Exception