public void finishDefinition ( ) { sequencer = null ; states = ImmutableBiMap . copyOf ( states ) ; Map < S , Set < T > > validTransitionsCopied = new HashMap < S , Set < T > > ( ) ; for ( Map . Entry < S , Set < T > > entry : validTransitions . entrySet ( ) ) { validTransitionsCopied . put ( entry . getKey ( ) , ImmutableSet . copyOf ( entry . getValue ( ) ) ) ; } validTransitions = ImmutableMap . copyOf ( validTransitions ) ; }
Finalize internal data structure after all the states and transitions have been added .