@FunctionalInterface public interface Consumer1<T1> extends java.util.function.Consumer<T1>
Modifier and Type | Method and Description |
---|---|
void |
accept(T1 v1)
Performs this operation on the given argument.
|
default void |
accept(Tuple1<? extends T1> args)
Performs this operation on the given argument.
|
default Consumer0 |
acceptPartially(T1 v1)
Let this consumer partially accept the arguments.
|
default Consumer0 |
acceptPartially(Tuple1<? extends T1> args)
Let this consumer partially accept the arguments.
|
static <T1> Consumer1<T1> |
from(java.util.function.Consumer<? super T1> consumer)
Convert to this consumer from a
Consumer . |
default java.util.function.Consumer<T1> |
toConsumer()
Convert this consumer to a
Consumer . |
andThen
default void accept(Tuple1<? extends T1> args)
args
- The arguments as a tuple.void accept(T1 v1)
accept
in interface java.util.function.Consumer<T1>
default java.util.function.Consumer<T1> toConsumer()
Consumer
.static <T1> Consumer1<T1> from(java.util.function.Consumer<? super T1> consumer)
Consumer
.default Consumer0 acceptPartially(T1 v1)
Copyright © 2016. All Rights Reserved.