Top Description Fields Methods
org.apache.commons.lang3.function

public Interface BooleanConsumer

Annotations
@FunctionalInterface
Imports
java.util.Objects, java.util.function.IntConsumer

A functional interface like IntConsumer but for boolean.
Since
3.13.0
See Also
IntConsumer

Field Summary

Modifier and TypeField and Description
public static final BooleanConsumer
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public void
accept(boolean
the input argument
value
)

Accepts the given arguments.

public default BooleanConsumer

Returns:

a composed BooleanConsumer that performs in sequence this operation followed by the after operation
andThen
(final BooleanConsumer
the operation to perform after this operation
after
)

Returns a composed BooleanConsumer that performs, in sequence, this operation followed by the after operation.

public static BooleanConsumer

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final BooleanConsumer NOP

NOP singleton

Method Detail

acceptback to summary
public void accept(boolean value)

Accepts the given arguments.

Parameters
value:boolean

the input argument

andThenback to summary
public default BooleanConsumer andThen(final BooleanConsumer after)

Returns a composed BooleanConsumer 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.

Parameters
after:BooleanConsumer

the operation to perform after this operation

Returns:BooleanConsumer

a composed BooleanConsumer that performs in sequence this operation followed by the after operation

Exceptions
NullPointerException:
if after is null
nopback to summary
public static BooleanConsumer nop()

Gets the NOP singleton.

Returns:BooleanConsumer

The NOP singleton.