Java内容重新整理删除过期的东西

This commit is contained in:
estom
2025-09-14 03:49:42 -04:00
parent 9b8524ff80
commit 885b795e45
413 changed files with 643 additions and 1340 deletions

View File

@@ -0,0 +1,28 @@
package cn.aofeng.demo.eventdriver_improve;
/**
* 事件
*
* @author aofeng <aofengblog@163.com>
*/
public class Event {
// 事件附带的数据
private Object data;
// 事件类型
private String eventType;
public Event(String eventType, Object obj){
this.eventType = eventType;
this.data = obj;
}
public Object getData() {
return this.data;
}
public String getEventType() {
return this.eventType;
}
}