boolean (int samParamCount, boolean booleanCompatible, boolean isVoid) { if (lambdaParameterCount >= 0 && samParamCount != lambdaParameterCount) return false; switch (lambdaReturnType) { case VOID: return isVoid; case NON_VOID: return !isVoid; case BOOLEAN: return booleanCompatible; default: return true; } }