@FunctionalInterface public interface BooleanConsumer extends Consumer<Boolean>
Consumer; provides methods to consume a primitive
type both as object and as primitive.Consumer| Modifier and Type | Method and Description |
|---|---|
void |
accept(boolean t) |
default void |
accept(Boolean t)
Deprecated.
Please use the corresponding type-specific method instead.
|
default BooleanConsumer |
andThen(BooleanConsumer after) |
default Consumer<Boolean> |
andThen(Consumer<? super Boolean> after)
Deprecated.
Please use the corresponding type-specific method instead.
|
void accept(boolean t)
@Deprecated default void accept(Boolean t)
default BooleanConsumer andThen(BooleanConsumer after)
@Deprecated default Consumer<Boolean> andThen(Consumer<? super Boolean> after)
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.