Interface CheckedRunnable<E extends Throwable>

Type Parameters:
E - the throwable type.
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 Throwable>
A Runnable-like interface which allows throwing any Throwable. Checked exceptions are wrapped in an IllegalStateException.
Since:
6.2
Author:
Artem Bilan
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
     
    default Runnable
     
  • Method Details

    • run

      void run() throws E
      Throws:
      E extends Throwable
    • unchecked

      default Runnable unchecked()