Пример #1
0
 /**
  * Transform the values in this map using <tt>function</tt>.
  *
  * @param function a <code>TShortFunction</code> value
  */
 public void transformValues(TShortFunction function) {
   byte[] states = _states;
   short[] values = _values;
   for (int i = values.length; i-- > 0; ) {
     if (states[i] == FULL) {
       values[i] = function.execute(values[i]);
     }
   }
 }
 public void transformValues(final TShortFunction function) {
   int i = this._pos;
   while (i-- > 0) {
     this._data[i] = function.execute(this._data[i]);
   }
 }
 /** {@inheritDoc} */
 @Override
 public void transformValues(TShortFunction function) {
   for (int i = _pos; i-- > 0; ) {
     _data.put(i, function.execute(_data.get(i)));
   }
 }