-
- All Superinterfaces:
java.lang.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 Consumer0 extends java.lang.Runnable
A consumer with 0 arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept()
Performs this operation on the given argument.default void
accept(Tuple0 args)
Performs this operation on the given argument.static Consumer0
from(java.lang.Runnable runnable)
Convert to this consumer from aRunnable
.default void
run()
default java.lang.Runnable
toRunnable()
Convert this consumer to aRunnable
.
-
-
-
Method Detail
-
accept
default void accept(Tuple0 args)
Performs this operation on the given argument.- Parameters:
args
- The arguments as a tuple.
-
accept
void accept()
Performs this operation on the given argument.
-
run
default void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
toRunnable
default java.lang.Runnable toRunnable()
Convert this consumer to aRunnable
.
-
from
static Consumer0 from(java.lang.Runnable runnable)
Convert to this consumer from aRunnable
.
-
-