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