Interface ThrowableFunctionalInterfaces.Procedure<X extends Exception>

  • Type Parameters:
    X - the type of exception to be thrown by the procedure
    Enclosing interface:
    ThrowableFunctionalInterfaces
    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 static interface ThrowableFunctionalInterfaces.Procedure<X extends Exception>
    Procedure functional interface which allows the invoke method to throw an exception of type X. Can be used for lambda-representations of a void method that may throw an exception.
    • Method Detail

      • invoke

        void invoke()
             throws X extends Exception
        Invokes the procedure.
        Throws:
        X - When an exception occurred during invocation
        X extends Exception