docs: public synchronized void setKey(int i, int key) {
  
          if (i < 0 || i >= count) {
              throw new IndexOutOfBoundsException();
          }
  
          if (!sortOnValues) {
              sorted = false;
          }
  
          keys[i] = key;
      }