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.
        Parameters:
        arg1 - the parameter given to the encapsulated method.
        Throws:
        TException - the exception the encapsulated method might throw.
        TException extends Exception