|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of object that can be evaluated@Applicative public interface Evaluable<T>
Evaluables are boolean conditions over an argument that can be tested
using its eval(Object) message.
Evaluable has the same semantics that an Applicable of
Boolean return type, but is provided for ease of coding. Concrete
implementors should implement Applicable as well.
Recomendations for implementing| Method Summary | |
|---|---|
boolean |
eval(T argument)
Evaluates an argument. |
| Method Detail |
|---|
boolean eval(T argument)
Evaluable implementors should not try to handle nulls. Instead, the
preferred way of getting a null safe Evaluable is composing it with
the null or non-null predicates from staccato-commons-lang:
Predicates.null_().or(theActualEvaluable) Predicates.notNull().and(theActualEvaluable)
argument - the argument to evaluate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||