Interface BooleanSupplier
- All Superinterfaces:
BooleanSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanSupplierDeprecated.prefer simple inlined lambda for claritystatic final BooleanSupplierDeprecated.prefer simple inlined lambda for clarity -
Method Summary
Methods inherited from interface BooleanSupplier
getAsBoolean
-
Field Details
-
TRUE
Deprecated.prefer simple inlined lambda for clarityBooleanSupplierthat always returns true. -
FALSE
Deprecated.prefer simple inlined lambda for clarityBooleanSupplierthat always returns false.
-
-
Method Details
-
asBoolean
default boolean asBoolean()Supply a boolean.- Returns:
- a boolean result
-