Interface FunctionWithThrowable<R,​T,​E extends Throwable>

  • Type Parameters:
    R - the generic type of return value
    T - the generic type of argument
    E - the element type which can be a Throwable
    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 FunctionWithThrowable<R,​T,​E extends Throwable>
    The Function Functional Throwable which can throw a Throwable.
    Author:
    Loganathan Sekar
    • Method Detail

      • apply

        R apply​(T t)
         throws E extends Throwable
        Expression that accepts an argument and returns a value.
        Parameters:
        t - the argument
        Returns:
        the return value
        Throws:
        E - the exception
        E extends Throwable