de.unkrig.commons.lang.protocol
Interface PredicateWhichThrows<T,EX extends java.lang.Throwable>
- Type Parameters:
T - The type of the evaluated subjectEX - The throwable type that evaluate(Object) may throw
public interface PredicateWhichThrows<T,EX extends java.lang.Throwable>
An entity that tests whether a subject of type T fulfils a particular condition.
IMPORTANT NOTICE:
When using this type in a variable, parameter or field declaration, never write
PredicateWhichThrows<subject-type, thrown-exception>
, but always
PredicateWhichThrows<? super subject-type, ? extends thrown-exception>
.
evaluate
boolean evaluate(T subject)
throws EX extends java.lang.Throwable
- Returns:
- Whether the
subject fulfils a particular condition
- Throws:
EX extends java.lang.Throwable