Interface CheckedRunnable<E extends Exception>

Type Parameters:
E - exception-type if run() fails.
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 CheckedRunnable<E extends Exception>
Like Runnable but can also throw an exception.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Runs an operation like with Runnable.run().
  • Method Details

    • run

      void run() throws E
      Runs an operation like with Runnable.run().
      Throws:
      E - an exception that may be thrown if the operation cannot complete successfully.