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.