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