Reputation: 1099
I'm looking for a preexisting functional interface like Predicate
, but one whose test
method takes no arguments.
Upvotes: 55
Views: 8383
Reputation: 37665
You're looking for BooleanSupplier
.
https://docs.oracle.com/javase/8/docs/api/java/util/function/BooleanSupplier.html
Upvotes: 55