Interface Ref1ToBooleanFunction<A>
- Type Parameters:
A- An input parameter type
- 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 1 generic input parameter and returns
a
boolean.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionbooleanApplies the function.default Ref1ToBooleanFunction<A> negate()Returns a Ref1ToBooleanFunction that represents!this.apply(...).static <A> Ref1ToBooleanFunction<A> not(Ref1ToBooleanFunction<A> func) Returns a Ref1ToBooleanFunction that represents!func.apply(...).
-
Method Details
-
apply
-
negate
Returns a Ref1ToBooleanFunction that represents!this.apply(...).- Returns:
- The logical negation of this function.
-
not
Returns a Ref1ToBooleanFunction that represents!func.apply(...).- Type Parameters:
A- A function parameter type- Parameters:
func- The function to negate. Must not benull.- Returns:
- The logical negation of the specified function.
- Throws:
NullPointerException- If the specified function isnull.
-