base/common/src/main/com/thesett/common/util/maps/HashArray.java
public V set(int index, V value) throws IndexOutOfBoundsException
    {
        // Check if the index does not already exist
        if (index >= data.size())
        {
            throw new IndexOutOfBoundsException();
        }

        return data.set(index, value);
    }
public V set(int index, V value) throws IndexOutOfBoundsException
    {
        // Check if the index does not already exist
        if (index >= data.size())
        {
            throw new IndexOutOfBoundsException();
        }

        return data.set(index, value);
    }
public V set ( int index , V value ) throws IndexOutOfBoundsException { // Check if the index does not already exist if ( index >= data . size ( ) ) { throw new IndexOutOfBoundsException ( ) ; } return data . set ( index , value ) ; }
Inserts the element at the specified index. This only works if this index already exists.

@param  index The index to insert at.
@param  value The value to store at that index.

@return The value that was previously stored at that index.

@throws IndexOutOfBoundsException If the index is out of the range covered by this data structure.
Inserts the element at the specified index . This only works if this index already exists .