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