Interface Action<E extends Exception>

Type Parameters:
E - The type of exception thrown.
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 interface Action<E extends Exception>
An Runnable functional interface which can throw a checked Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Runs the action, throwing the Exception if necessary.
  • Method Details

    • run

      void run() throws E
      Runs the action, throwing the Exception if necessary.
      Throws:
      E - An exception.