Package eu.ciechanowiec.conditional
Interface Runnable
-
- 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 Runnable
Functional interface that takes any command and runs it in a void manner, without returning a result.It is similar to
Runnable, but differs from it in such way that its unaryrun()method has anExceptionspecified in the method declaration within athrows...clause. Such declaration is required to enable the possibility of passing to respective methods and constructors ofConditionalandActioncommands that throw checkedExceptions without enforcing to handle them.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()Takes any command and runs it in a void manner, without returning a result value.
-