@FunctionalInterface
public interface BooleanConsumer
IntConsumer
but for boolean
.IntConsumer
Modifier and Type | Field and Description |
---|---|
static BooleanConsumer |
NOP
NOP singleton
|
Modifier and Type | Method and Description |
---|---|
void |
accept(boolean value)
Accepts the given arguments.
|
default BooleanConsumer |
andThen(BooleanConsumer after)
Returns a composed
BooleanConsumer that performs, in sequence, this operation followed by the after
operation. |
static BooleanConsumer |
nop()
Returns The NOP singleton.
|
static final BooleanConsumer NOP
static BooleanConsumer nop()
void accept(boolean value)
value
- the input argumentdefault BooleanConsumer andThen(BooleanConsumer after)
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.after
- the operation to perform after this operationBooleanConsumer
that performs in sequence this operation followed by the after
operationjava.lang.NullPointerException
- if after
is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved