public boolean hasTransitionTo ( CharRange condition , NFAState < T > state ) { Set < Transition < NFAState < T >>> set = transitions . get ( condition ) ; if ( set != null ) { for ( Transition < NFAState < T > > tr : set ) { if ( state . equals ( tr . getTo ( ) ) ) { return true ; } } } return false ; }
Returns true if transition with condition to state exists