tinymachine/src/main/java/de/halfbit/tinymachine/TinyMachine.java
public void transitionTo(int state) {
        mTaskQueue.offer(Task.obtainTask(Task.CODE_TRANSITION, null, state));
        if (!mQueueProcessed) processTaskQueue();
    }
public void transitionTo(int state) {
        mTaskQueue.offer(Task.obtainTask(Task.CODE_TRANSITION, null, state));
        if (!mQueueProcessed) processTaskQueue();
    }
public void transitionTo ( int state ) { mTaskQueue . offer ( Task . obtainTask ( Task . CODE_TRANSITION , null , state ) ) ; if ( ! mQueueProcessed ) processTaskQueue ( ) ; }
Moves state machine in a new given state. If state machine is already in that state,
then this method has no effect. Otherwise, if exists, <code>Type.OnExit</code> event
handler for the current state is called first and then <code>Type.OnEntry</code> event
handler for new state is called.

@param state new state to put state machine into
Moves state machine in a new given state . If state machine is already in that state then this method has no effect . Otherwise if exists <code > Type . OnExit< / code > event handler for the current state is called first and then <code > Type . OnEntry< / code > event handler for new state is called .