public V setValue(int i, V value) {
        V prev = value(i);
        store[capacity + i] = value;
        return prev;
    }
This will replace the value at the index give.

@param i the index of the value, must be in the range [0, size() - 1]
@param value The new value you want to set for this index.
@return previous value
vespajlib/src/main/java/com/yahoo/collections/Hashlet.java