Interface FloatToBooleanFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function that accepts a
float
and returns a boolean.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(float e) Applies the function.default FloatToBooleanFunctionnegate()Returns a FloatToBooleanFunction that represents!this.apply(e).static FloatToBooleanFunctionnot(FloatToBooleanFunction func) Returns a FloatToBooleanFunction that represents!func.apply(e).
-
Method Details
-
apply
boolean apply(float e) Applies the function.- Parameters:
e- The argument.- Returns:
- The result.
-
negate
Returns a FloatToBooleanFunction that represents!this.apply(e).- Returns:
- The logical negation of this function.
-
not
Returns a FloatToBooleanFunction that represents!func.apply(e).- Parameters:
func- The function to negate. Must not benull.- Returns:
- The logical negation of the specified function.
- Throws:
NullPointerException- If the specified function isnull.
-