/** {@inheritDoc} */ public boolean forEachEntry( TFloatIntProcedure procedure ) { byte[] states = _states; float[] keys = _set; int[] values = _values; for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean retainEntries( TFloatIntProcedure procedure ) { boolean modified = false; byte[] states = _states; float[] keys = _set; int[] 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} */ public boolean forEachEntry( TFloatIntProcedure procedure ) { byte[] states = _states; float[] keys = _set; int[] values = _values; for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean forEachEntry( TFloatIntProcedure procedure ) { byte[] states = _states; float[] keys = _set; int[] values = _values; for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean forEachEntry( TFloatIntProcedure procedure ) { byte[] states = _states; float[] keys = _set; int[] values = _values; for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { return false; } } return true; }
/** {@inheritDoc} */ @Override public boolean forEachEntry( TFloatIntProcedure procedure ) { byte[] states = _states; float[] keys = _set; int[] values = _values; for ( int i = keys.length; i-- > 0; ) { if ( states[i] == FULL && ! procedure.execute( keys[i], values[i] ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean retainEntries( TFloatIntProcedure procedure ) { boolean modified = false; byte[] states = _states; float[] keys = _set; int[] 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} */ public boolean retainEntries( TFloatIntProcedure procedure ) { boolean modified = false; byte[] states = _states; float[] keys = _set; int[] 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( TFloatIntProcedure procedure ) { boolean modified = false; byte[] states = _states; float[] keys = _set; int[] 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} */ public boolean retainEntries( TFloatIntProcedure procedure ) { boolean modified = false; byte[] states = _states; float[] keys = _set; int[] 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 forEachEntry( TFloatIntProcedure procedure ) { TByteOffheapArray states = _states; TFloatOffheapArray keys = _set; TIntOffheapArray values = _values; for ( int i = capacity(); i-- > 0; ) { if ( states.get( i ) == FULL && ! procedure.execute( keys.get( i ), values.get( i ) ) ) { return false; } } return true; }
/** {@inheritDoc} */ @Override public boolean retainEntries( TFloatIntProcedure procedure ) { boolean modified = false; TByteOffheapArray states = _states; TFloatOffheapArray keys = _set; TIntOffheapArray values = _values; // Temporarily disable compaction. This is a fix for bug #1738760 tempDisableAutoCompaction(); try { for ( int i = capacity(); i-- > 0; ) { if ( states.get( i ) == FULL && ! procedure.execute( keys.get( i ), values.get( i) ) ) { removeAt( i ); modified = true; } } } finally { reenableAutoCompaction( true ); } return modified; }