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