code: private boolean toNextState(LifecycleState newState)
    {
      LifecycleState state;
      
      synchronized (this) {
        state = _state;
        
        if (newState.ordinal() <= state.ordinal()) {
          return false;
        }
        
        _state = newState;
  
        _lastChangeTime = CurrentTime.currentTime();
      }
  
      if (_log != null && _log.isLoggable(_lowLevel)) {
        _log.log(_lowLevel, newState + " " + _name);
      }
  
      notifyListeners(state, newState);
  
      return true;
    }
docs: Changes to the next state.
  
  @return true if the transition is allowed