Module org.tquadrat.foundation.base
Interface TCEPredicate<T>
- Type Parameters:
T
- The type of the input to the predicate.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@ClassVersion(sourceVersion="$Id: TCEPredicate.java 1118 2024-03-15 16:14:15Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public interface TCEPredicate<T>
The TCE version of the interface
Different from the method
This is a functional interface whose functional method is
Predicate
that represents a predicate (boolean-valued function) of one argument. Different from the method
Predicate.test()
the method
test(Object)
of this interface declares to throw a
checked exception.This is a functional interface whose functional method is
test(Object)
.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: TCEPredicate.java 1118 2024-03-15 16:14:15Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.function.tce.TCEPredicate"
-
Method Details
-
test
Evaluates this predicate on the given argument.- Parameters:
arg
- The input argument- Returns:
true
if the input argument matches the predicate, otherwisefalse
.- Throws:
Exception
- Something went wrong.
-