public class GREDecorator extends EvaluatorDecorator { private double minGRE; public GREDecorator(double minGRE, IEvaluator next) { super(next); this.minGRE = minGRE; } public GREDecorator(IEvaluator next) { this(500, next); } public void eval(Application app) { if (app.gre == null || app.gre < minGRE) { app.accepted = false; } else { super.eval(app); } } }