/** * Transform the values in this map using <tt>function</tt>. * * @param function a <code>TObjectFunction</code> value */ public void transformValues(TObjectFunction<V, V> function) { byte[] states = _states; V[] values = _values; for (int i = values.length; i-- > 0; ) { if (states[i] == FULL) { values[i] = function.execute(values[i]); } } }
public void transformValues(final TObjectFunction<V, V> function) { final byte[] states = this._states; final V[] values = (V[]) this._values; int i = values.length; while (i-- > 0) { if (states[i] == 1) { values[i] = function.execute(values[i]); } } }