Interface FunctionWithExcpt<T,​R,​X extends Exception>

  • Type Parameters:
    T - the type of the argument
    R - the type of the result
    X - the type of the exception thrown

    public interface FunctionWithExcpt<T,​R,​X extends Exception>
    Functional interface with exception
    Author:
    hp
    • Method Detail

      • apply

        R apply​(T t)
         throws X extends Exception
        Applies the value, returns a result and possibly throws an exception.
        Parameters:
        t - the value
        Returns:
        the result
        Throws:
        X - the exception possibly thrown
        X extends Exception