code: public boolean replace(final int key, final int oldValue, final int newValue)
      {
          final int curValue = get(key);
          if (curValue != oldValue || curValue == missingValue)
          {
              return false;
          }
  
          put(key, newValue);
  
          return true;
      }
docs: Primitive specialised version of {@link #replace(Object, Object, Object)}
  
  @param key key with which the specified value is associated
  @param oldValue value expected to be associated with the specified key
  @param newValue value to be associated with the specified key
  @return {@code true} if the value was replaced