53

I'm looking for a preexisting functional interface like Predicate, but one whose test method takes no arguments.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Greg Valvo
  • 1,069
  • 1
  • 9
  • 13

1 Answers1

53

You're looking for BooleanSupplier.

https://docs.oracle.com/javase/8/docs/api/java/util/function/BooleanSupplier.html

Paul Boddington
  • 37,127
  • 10
  • 65
  • 116