package pt.utl.ist.fenix.tools.predicates; import java.util.Collection; public class OrPredicate extends ChainPredicate { public OrPredicate(Collection> predicates) { super(predicates); } public OrPredicate() { super(); } @Override public boolean eval(T t) { for (Predicate predicate : predicates) { if (predicate.eval(t)) { return true; } } return false; } }