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