package pt.utl.ist.fenix.tools.predicates; import java.util.ArrayList; import java.util.Collection; public abstract class ChainPredicate extends Predicate { protected Collection> predicates; public ChainPredicate(Collection> predicates) { this.predicates = predicates; } public ChainPredicate() { this(new ArrayList>()); } public void add(Predicate predicate) { this.predicates.add(predicate); } }