src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java
public <TArg0> StateConfiguration<S, T> onEntryFrom(TriggerWithParameters1<TArg0, T> trigger, final Action1<TArg0> entryAction) {
        assert entryAction != null : ENTRY_ACTION_IS_NULL;
        return onEntryFrom(trigger, new Action2<TArg0, Transition<S, T>>() {
            @Override
            public void doIt(TArg0 arg1, Transition<S, T> arg2) {
                entryAction.doIt(arg1);
            }
        });
    }
public <TArg0> StateConfiguration<S, T> onEntryFrom(TriggerWithParameters1<TArg0, T> trigger, final Action1<TArg0> entryAction) {
        assert entryAction != null : ENTRY_ACTION_IS_NULL;
        return onEntryFrom(trigger, new Action2<TArg0, Transition<S, T>>() {
            @Override
            public void doIt(TArg0 arg1, Transition<S, T> arg2) {
                entryAction.doIt(arg1);
            }
        });
    }
public < TArg0 > StateConfiguration < S , T > onEntryFrom ( TriggerWithParameters1 < TArg0 , T > trigger , final Action1 < TArg0 > entryAction ) { assert entryAction != null : ENTRY_ACTION_IS_NULL ; return onEntryFrom ( trigger , new Action2 < TArg0 , Transition < S , T > > ( ) { @ Override public void doIt ( TArg0 arg1 , Transition < S , T > arg2 ) { entryAction . doIt ( arg1 ) ; } } ) ; }
Specify an action that will execute when transitioning into the configured state

@param trigger     The trigger by which the state must be entered in order for the action to execute
@param entryAction Action to execute, providing details of the transition
@param <TArg0>     Type of the first trigger argument
@return The receiver
Specify an action that will execute when transitioning into the configured state