1

Given the following code:

BooleanSupplier booleanSupplier = this::someMethod;

How can booleanSupplier be later compared to this::someMethod? With booleanSupplier == this::someMethod, Java complains that this::someMethod isn't expected in that context.

Noel Yap
  • 18,822
  • 21
  • 92
  • 144

0 Answers0