alarmlistener.java

来自「著名的uncle Bob的Agile software development的」· Java 代码 · 共 18 行

JAVA
18
字号
package system;

/**
 * The AlarmListener interface is used by the users of 
 * the AlarmClock interface.  If a class wishes to be notified 
 * using the AlarmClock, the class will have to implement this
 * interface and register with the AlarmClock specifying this 
 * object and a duration.
 *
 * @see AlarmClock
 * @version 1.0
 */

public interface AlarmListener
{
  void wakeUp();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?