A - The type of the input to the operation.@FunctionalInterface public interface Consumer<A> extends AtlanticConsumer<A,Runnable,Function<A,Void>>
Consumer is expected to operate via side-effects.
This is a functional interface whose functional method is accept(Object).| Modifier and Type | Method and Description |
|---|---|
void |
accept(A parameter)
Performs this operation on the given argument.
|
default Runnable |
downgrade(Supplier<A> supplier) |
default Function<A,Void> |
toFunction()
Converts this consumer into an
AtlanticFunction that executes this consumer and then returns null. |
downgradevoid accept(A parameter) throws Throwable
parameter - The input argument.Throwable - Any exception that the operation will throw.default Function<A,Void> toFunction()
AtlanticConsumerAtlanticFunction that executes this consumer and then returns null.toFunction in interface AtlanticConsumer<A,Runnable,Function<A,Void>>Copyright © 2019. All rights reserved.