You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Predicate Logic

Is there some easy way to chain predicates – or do complex boolean logic. I would like to build a rule system based on the Predicate type but I dont like how the evaluate method takes an Object. I would rather have each Predicate be "setup" via some sort of interface PredicateContext (rather than Object) in the constructor (or factory method in this case).

Any thoughts?

Thanks.


  • No labels