Interface Action1<TArg1,​TException extends Exception>

  • Type Parameters:
    TException - the type of exception that might be thrown.

    public interface Action1<TArg1,​TException extends Exception>
    Encapsulates a method that has a single parameter and does not return a value, but might throw an exception.
    • Method Detail

      • invoke

        void invoke​(TArg1 arg1)
             throws TException extends Exception
        Invokes the action with the given parameter.
        arg1 - the parameter given to the encapsulated method.
        TException - the exception the encapsulated method might throw.
        TException extends Exception