接口 Observer


public interface Observer
Obeserver.
作者:
liaochuntao, xiweng.yy
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    This method is called whenever the observed object is changed.
  • 方法详细资料

    • update

      void update(Observable o)
      This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change.
      参数:
      o - the observable object.