src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java
public <TArg0> StateConfiguration<S, T> onEntryFrom(TriggerWithParameters1<TArg0, T> trigger, final Action2<TArg0, Transition<S, T>> entryAction) {
        assert trigger != null : TRIGGER_IS_NULL;
        assert entryAction != null : ENTRY_ACTION_IS_NULL;
        representation.addEntryAction(trigger.getTrigger(), new Action2<Transition<S, T>, Object[]>() {
            @SuppressWarnings("unchecked")
            @Override
            public void doIt(Transition<S, T> t, Object[] arg2) {
                entryAction.doIt((TArg0) arg2[0], t);
            }
        });
        return this;
    }
public <TArg0> StateConfiguration<S, T> onEntryFrom(TriggerWithParameters1<TArg0, T> trigger, final Action2<TArg0, Transition<S, T>> entryAction) {
        assert trigger != null : TRIGGER_IS_NULL;
        assert entryAction != null : ENTRY_ACTION_IS_NULL;
        representation.addEntryAction(trigger.getTrigger(), new Action2<Transition<S, T>, Object[]>() {
            @SuppressWarnings("unchecked")
            @Override
            public void doIt(Transition<S, T> t, Object[] arg2) {
                entryAction.doIt((TArg0) arg2[0], t);
            }
        });
        return this;
    }
public < TArg0 > StateConfiguration < S , T > onEntryFrom ( TriggerWithParameters1 < TArg0 , T > trigger , final Action2 < TArg0 , Transition < S , T > > entryAction ) { assert trigger != null : TRIGGER_IS_NULL ; assert entryAction != null : ENTRY_ACTION_IS_NULL ; representation . addEntryAction ( trigger . getTrigger ( ) , new Action2 < Transition < S , T > , Object [ ] > ( ) { @ SuppressWarnings ( "unchecked" ) @ Override public void doIt ( Transition < S , T > t , Object [ ] arg2 ) { entryAction . doIt ( ( TArg0 ) arg2 [ 0 ] , t ) ; } } ) ; return this ; }
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