src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java
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;
    }
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;
    }
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.

@param state The state
@return StateRepresentation for the specified state.
Return StateRepresentation for the specified state . Creates representation if it does not exist .