Represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, Consumer is expected to operate via side-effects.
This is a functional interface whose functional method is accept(Object).
Represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, Consumer is expected to operate via side-effects. This is a functional interface whose functional method is accept(Object).
(accept this t)
Performs this operation on the given argument.
t - the input argument - T
Performs this operation on the given argument. t - the input argument - `T`
(and-then this after)
Returns a composed Consumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.
after - the operation to perform after this operation - java.util.function.Consumer
returns: a composed Consumer that performs in sequence this
operation followed by the after operation - default java.util.function.Consumer<T>
throws: java.lang.NullPointerException - if after is null
Returns a composed Consumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed. after - the operation to perform after this operation - `java.util.function.Consumer` returns: a composed Consumer that performs in sequence this operation followed by the after operation - `default java.util.function.Consumer<T>` throws: java.lang.NullPointerException - if after is null
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close