MCPcopy Create free account
hub / github.com/Beh01der/EasyFlow / whenEnter

Method whenEnter

src/main/java/au/com/ds/ef/EasyFlow.java:85–88  ·  view source on GitHub ↗
(StateEnum state, ContextHandler<C1> onEnter)

Source from the content-addressed store, hash-verified

83 }
84
85 public <C1 extends StatefulContext> EasyFlow<C1> whenEnter(StateEnum state, ContextHandler<C1> onEnter) {
86 handlers.setHandler(EventType.STATE_ENTER, state, null, onEnter);
87 return (EasyFlow<C1>) this;
88 }
89
90 public <C1 extends StatefulContext> EasyFlow<C1> whenEnter(StateHandler<C1> onEnter) {
91 handlers.setHandler(EventType.ANY_STATE_ENTER, null, null, onEnter);

Callers 7

setUpMethod · 0.80
testInvalidEventMethod · 0.80
testEventsOrderMethod · 0.80
testEventReuseMethod · 0.80
testSyncExecutorMethod · 0.80
testGlobalHandlersMethod · 0.80
NodeMethod · 0.80

Calls 1

setHandlerMethod · 0.80

Tested by 7

setUpMethod · 0.64
testInvalidEventMethod · 0.64
testEventsOrderMethod · 0.64
testEventReuseMethod · 0.64
testSyncExecutorMethod · 0.64
testGlobalHandlersMethod · 0.64
NodeMethod · 0.64