Liking cljdoc? Tell your friends :D
Clojure only.

jdk.util.function.Consumer

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).
raw docstring

acceptclj

(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`
raw docstring

and-thenclj

(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
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close