Subject - The type of the values to perform tests on.public interface Predicate<Subject>
Predicate is used to perform arbitrary test on test subject. It is
usually used in a scenario where some sort of data provider wants to offer
the possibility to filter values before delivery or during the data
processing.| Modifier and Type | Method and Description |
|---|---|
boolean |
test(Subject subject)
Performs the test on a given test subject.
|
boolean test(Subject subject) throws EvaluationException
It lies in the responsibility of the caller, to handle unwanted
null-values by replacing them with a sensible default value or
throwing a NullPointerException.
Implementers should catch any exception and wrap them in a
EvaluationException.
subject - The test subject.EvaluationException - If testing the test subject failed.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.