/** * Removes a value from the collection. * * @param index the index of the item to remove (in the range * {@code 0} to {@code getItemCount() -1}). * * @throws IndexOutOfBoundsException if {@code index} is not within * the specified range. */ public void removeValue(int index) { this.keys.remove(index); this.values.remove(index); rebuildIndex(); }
/** * Removes a value from the collection. * * @param index the index of the item to remove (in the range * <code>0</code> to <code>getItemCount() - 1</code>). * * @throws IndexOutOfBoundsException if <code>index</code> is not within * the specified range. */ public void removeValue(int index) { this.keys.remove(index); this.values.remove(index); rebuildIndex(); }