/** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public boolean retainEntries( TIntObjectProcedure<? super V> procedure ) { boolean modified = false; byte[] states = _states; int[] keys = _set; V[] values = _values; // Temporarily disable compaction. This is a fix for bug #1738760 tempDisableAutoCompaction(); try { for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { removeAt( i ); modified = true; } } } finally { reenableAutoCompaction( true ); } return modified; }
/** See {@link gnu.trove.map.hash.TIntObjectHashMap#tempDisableAutoCompaction()} */ public void tempDisableAutoCompaction() { delegate.tempDisableAutoCompaction(); }
/** See {@link gnu.trove.map.hash.TIntObjectHashMap#tempDisableAutoCompaction()} */ public void tempDisableAutoCompaction() { delegate.tempDisableAutoCompaction(); }
/** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public boolean retainEntries( TIntObjectProcedure<? super V> procedure ) { boolean modified = false; byte[] states = _states; int[] keys = _set; V[] values = _values; // Temporarily disable compaction. This is a fix for bug #1738760 tempDisableAutoCompaction(); try { for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { removeAt( i ); modified = true; } } } finally { reenableAutoCompaction( true ); } return modified; }
/** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public boolean retainEntries( TIntObjectProcedure<V> procedure ) { boolean modified = false; byte[] states = _states; int[] keys = _set; V[] values = _values; // Temporarily disable compaction. This is a fix for bug #1738760 tempDisableAutoCompaction(); try { for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { removeAt( i ); modified = true; } } } finally { reenableAutoCompaction( true ); } return modified; }
/** {@inheritDoc} */ @Override public boolean retainEntries( TIntObjectProcedure<? super V> procedure ) { boolean modified = false; byte[] states = _states; int[] keys = _set; V[] values = _values; // Temporarily disable compaction. This is a fix for bug #1738760 tempDisableAutoCompaction(); try { for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { removeAt( i ); modified = true; } } } finally { reenableAutoCompaction( true ); } return modified; }
/** {@inheritDoc} */ @SuppressWarnings({"unchecked"}) public boolean retainEntries( TIntObjectProcedure<? super V> procedure ) { boolean modified = false; byte[] states = _states; int[] keys = _set; V[] values = _values; // Temporarily disable compaction. This is a fix for bug #1738760 tempDisableAutoCompaction(); try { for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { removeAt( i ); modified = true; } } } finally { reenableAutoCompaction( true ); } return modified; }