Similarly, we need an interface that defines one method for lambdas. To return a primitive type (boolean) it is easier to define a specific interface here. This is also consistent with the new APIs coming in java 8.