Interface CheckedRunnable

  • 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
    A Runnable that allows for checked exceptions.
    • Method Detail

      • run

        void run()
          throws java.lang.Throwable
        Run this runnable.
        Throws:
        java.lang.Throwable
      • unchecked

        static java.lang.Runnable unchecked​(CheckedRunnable runnable)
      • unchecked

        static java.lang.Runnable unchecked​(CheckedRunnable runnable,
                                            java.util.function.Consumer<java.lang.Throwable> handler)