Interface Action2<TArg1,​TArg2,​TException extends Exception>

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

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

      • invoke

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