private void notifyObservers(HistogramUpdate update) { Iterator<IObserver> iter = observers.iterator(); while (iter.hasNext()) { IObserver listener = iter.next(); listener.update(this, update); } }
private void notifyDataObservers(DataBean bean) { Iterator<IObserver> iter = dataObservers.iterator(); while (iter.hasNext()) { IObserver ob = iter.next(); ob.update(this, bean); } }