📄 timerevent.java
字号:
/**
@version 1.11 2001-08-21
@author Cay Horstmann
*/
import java.util.*;
/**
A class to describe timer events.
*/
public class TimerEvent extends EventObject
{
/**
Constructs a timer event.
@param source the event source
*/
public TimerEvent(Object source)
{
super(source);
now = new Date();
}
/**
Reports when the event was constructed.
@return the construction date and time
*/
public Date getDate()
{
return now;
}
public String toString()
{
return now + ":" + super.toString();
}
private Date now;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -