@FunctionalInterface
public interface BooleanConsumer
extends java.util.function.Consumer<java.lang.Boolean>
| Modifier and Type | Method and Description |
|---|---|
void |
accept(boolean t)
Type-Specific function to reduce (un)boxing.
|
default void |
accept(java.lang.Boolean t)
Deprecated.
Please use the corresponding type-specific function instead.
|
default BooleanConsumer |
andThen(BooleanConsumer after)
Type Specific sequencing method to reduce boxing/unboxing.
|
default BooleanConsumer |
andThen(java.util.function.Consumer<? super java.lang.Boolean> after)
Deprecated.
Please use the corresponding type-specific function instead.
|
void accept(boolean t)
t - the input argumentdefault BooleanConsumer andThen(BooleanConsumer after)
after - a operation that should be performed afterwardsjava.lang.NullPointerException - if after is null@Deprecated default void accept(java.lang.Boolean t)
This default implementation delegates to the corresponding type-specific function.
accept in interface java.util.function.Consumer<java.lang.Boolean>@Deprecated default BooleanConsumer andThen(java.util.function.Consumer<? super java.lang.Boolean> after)
This default implementation delegates to the corresponding type-specific function.
andThen in interface java.util.function.Consumer<java.lang.Boolean>