-
- All Superinterfaces:
java.util.function.Consumer<T1>
- 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 Consumer1<T1> extends java.util.function.Consumer<T1>
A consumer with 1 arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(Tuple1<? extends T1> args)
Performs this operation on the given argument.void
accept(T1 v1)
Performs this operation on the given argument.default Consumer0
acceptPartially(Tuple1<? extends T1> args)
Let this consumer partially accept the arguments.default Consumer0
acceptPartially(T1 v1)
Let this consumer partially accept the arguments.static <T1> Consumer1<T1>
from(java.util.function.Consumer<? super T1> consumer)
Convert to this consumer from aConsumer
.default java.util.function.Consumer<T1>
toConsumer()
Convert this consumer to aConsumer
.
-
-
-
Method Detail
-
accept
default void accept(Tuple1<? extends T1> args)
Performs this operation on the given argument.- Parameters:
args
- The arguments as a tuple.
-
accept
void accept(T1 v1)
Performs this operation on the given argument.- Specified by:
accept
in interfacejava.util.function.Consumer<T1>
-
toConsumer
default java.util.function.Consumer<T1> toConsumer()
Convert this consumer to aConsumer
.
-
from
static <T1> Consumer1<T1> from(java.util.function.Consumer<? super T1> consumer)
Convert to this consumer from aConsumer
.
-
acceptPartially
default Consumer0 acceptPartially(T1 v1)
Let this consumer partially accept the arguments.
-
-