Package nbbrd.io.function
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 Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NonNull CloseableasCloseable()default @NonNull RunnableasUnchecked()static @NonNull IORunnablechecked(@NonNull Runnable o)static @NonNull IORunnablenoOp()voidrunWithIO()Run this function.static @NonNull Runnableunchecked(@NonNull IORunnable o)
-
-
-
Method Detail
-
runWithIO
@JdkWithIO void runWithIO() throws IOExceptionRun this function.- Throws:
IOException- if an I/O error occurs
-
asCloseable
default @NonNull Closeable asCloseable()
-
asUnchecked
default @NonNull Runnable asUnchecked()
-
unchecked
static @NonNull Runnable unchecked(@NonNull IORunnable o)
-
checked
static @NonNull IORunnable checked(@NonNull Runnable o)
-
noOp
static @NonNull IORunnable noOp()
-
-