Interface SpecificThrowingRunnable<E extends Throwable>

Type Parameters:
E - The exception type
All Known Subinterfaces:
ThrowingRunnable
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 SpecificThrowingRunnable<E extends Throwable>
Similar to a Runnable, except that the functional run method is allowed to throw the specified exception.
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Runs this ThrowingRunnable.
  • Method Details

    • run

      void run() throws E
      Runs this ThrowingRunnable.
      Throws:
      E - Any exception