S - 状态T - 装载@Preview(value="3.4") public class EventContextDefault<S,T> extends java.lang.Object implements EventContext<S,T>
| 限定符 | 构造器和说明 |
|---|---|
protected |
EventContextDefault(S currentState,
T payload) |
| 限定符和类型 | 方法和说明 |
|---|---|
S |
getCurrentState()
获取当前状态
|
T |
getPayload()
获取装载
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic S getCurrentState()
getCurrentState 在接口中 EventContext<S,T>public T getPayload()
getPayload 在接口中 EventContext<S,T>