private StateRepresentation < TState , TTrigger > getOrCreateRepresentation ( TState state ) { StateRepresentation < TState , TTrigger > result = stateConfiguration . get ( state ) ; if ( result == null ) { result = new StateRepresentation <> ( state ) ; stateConfiguration . put ( state , result ) ; } return result ; }
Return StateRepresentation for the specified state . Creates representation if it does not exist .