/** * Delete the record at <tt>index</tt>. * * @param index an <code>int</code> value */ protected void removeAt(int index) { _states[index] = REMOVED; super.removeAt(index); }
protected void removeAt(int index) { _set[index] = REMOVED; super.removeAt(index); }
/** * Removes the last entry returned by the iterator. Invoking this method more than once for a * single entry will leave the underlying data structure in a confused state. */ public void remove() { if (_expectedSize != _hash.size()) { throw new ConcurrentModificationException(); } // Disable auto compaction during the remove. This is a workaround for bug 1642768. try { _hash.tempDisableAutoCompaction(); _hash.removeAt(_index); } finally { _hash.reenableAutoCompaction(false); } _expectedSize--; }