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
  • 17,356
  • 20
  • 81
  • 129

0 Answers0