public V setValue(V value) {
      if (!allowModify)
        throw new UnsupportedOperationException();
      V old = values[lastPos];
      values[lastPos] = value;
      return old;      
    }
sets the value associated with the last key returned
linguistics/src/main/java/com/yahoo/language/simple/kstem/CharArrayMap.java