public void detachObserver(Observer observer) { if (this.observer == observer) { this.observer = null; } }
public void attachObserver(Observer observer) { this.observer = observer; }