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 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"

UML Diagram for "org.tquadrat.foundation.function.tce.TCEPredicate"

UML Diagram for "org.tquadrat.foundation.function.tce.TCEPredicate"
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    test(T arg)
    Evaluates this predicate on the given argument.
  • Method Details Link icon

    • test Link icon

      boolean test(T arg) throws Exception
      Evaluates this predicate on the given argument.
      Parameters:
      arg - The input argument
      Returns:
      true if the input argument matches the predicate, otherwise false.
      Throws:
      Exception - Something went wrong.