Interface IORunnable

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 IORunnable
Represents a function without argument and result.
  • Method Details

    • runWithIO

      @JdkWithIO void runWithIO() throws IOException
      Run this function.
      Throws:
      IOException - if an I/O error occurs
    • asCloseable

      @NonNull default @NonNull Closeable asCloseable()
    • asUnchecked

      @NonNull default @NonNull Runnable asUnchecked()
    • unchecked

      @NonNull static @NonNull Runnable unchecked(@NonNull @NonNull IORunnable o)
    • checked

      @NonNull static @NonNull IORunnable checked(@NonNull @NonNull Runnable o)
    • noOp

      @NonNull static @NonNull IORunnable noOp()