BooleanConsumer¶
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.BooleanConsumer[source]¶
A functional interface like
IntConsumerbut forboolean.- See also:
- Since:
3.13.0
Fields and constants¶
NOP singleton |
- public static final BooleanConsumer NOP[source]¶
NOP singleton
Methods¶
Accepts the given arguments. |
|
Returns a composed |
|
Gets the NOP singleton. |
- public abstract void accept(boolean value)[source]¶
Accepts the given arguments.
- Parameters:
value – The input argument
- public default BooleanConsumer andThen(BooleanConsumer after)[source]¶
Returns a composed
BooleanConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after – The operation to perform after this operation
- Returns:
A composed
BooleanConsumerthat performs in sequence this operation followed by theafteroperation- Throws:
java.lang.NullPointerException – Thrown if
afteris null.
- public static BooleanConsumer nop()[source]¶
Gets the NOP singleton.
- Returns:
The NOP singleton.