What are the use cases for methods with BooleanSupplier parameter? #2552
-
There are a few methods in What is the use case for these methods? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is one category of use cases: types that implement Another category of use cases includes methods that return a
Yes, if you already have the |
Beta Was this translation helpful? Give feedback.
That is one category of use cases: types that implement
BooleanSupplier
.Another category of use cases includes methods that return a
BooleanSupplier
.Yes, if you already have the
boolean
orBoolean
, there is no need to wrap it in aBooleanSupplier
.