/** * 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. */ @Override public void remove() { // Remove for iterator first localIterator.remove(); // the removal within removeAt() will not change the collection // but the localIterator will remain valid try { _hash.tempDisableAutoCompaction(); TLinkedHashSet.this.removeAt(lastIndex); } finally { _hash.reenableAutoCompaction(false); } } }; //To change body of overridden methods use File | Settings | File Templates.
/** * 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. */ @Override public void remove() { // Remove for iterator first localIterator.remove(); // the removal within removeAt() will not change the collection // but the localIterator will remain valid try { _hash.tempDisableAutoCompaction(); TLinkedHashSet.this.removeAt(lastIndex); } finally { _hash.reenableAutoCompaction(false); } } }; //To change body of overridden methods use File | Settings | File Templates.
/** * 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. */ @Override public void remove() { // Remove for iterator first localIterator.remove(); // the removal within removeAt() will not change the collection // but the localIterator will remain valid try { _hash.tempDisableAutoCompaction(); TLinkedHashSet.this.removeAt(lastIndex); } finally { _hash.reenableAutoCompaction(false); } } }; //To change body of overridden methods use File | Settings | File Templates.