code: public void setLastState(State s) {
          Entry<Character, State> entry = transitions.lastEntry();
          transitions.put(entry.getKey(), s);
          d_recomputeHash = true;
      }
docs: Set the {@link State} that the last transition points to.
  
  @param s The state.