-
- 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.RunnableA consumer with 0 arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept()Performs this operation on the given argument.default voidaccept(Tuple0 args)Performs this operation on the given argument.static Consumer0from(java.lang.Runnable runnable)Convert to this consumer from aRunnable.default voidrun()default java.lang.RunnabletoRunnable()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:
runin 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.
-
-