-
public class Event<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
hasBeenHandled
-
Method Summary
Modifier and Type Method Description final Boolean
getHasBeenHandled()
final Unit
setHasBeenHandled(Boolean hasBeenHandled)
final T
getContentIfNotHandled()
单次使用数据,避免多次使用出现脏数据 final T
peekContent()
-
-
Constructor Detail
-
Event
Event(T content)
-
-
Method Detail
-
getHasBeenHandled
final Boolean getHasBeenHandled()
-
setHasBeenHandled
final Unit setHasBeenHandled(Boolean hasBeenHandled)
-
getContentIfNotHandled
final T getContentIfNotHandled()
单次使用数据,避免多次使用出现脏数据
-
peekContent
final T peekContent()
-
-
-
-