/** * Multiply the values inplace by a scalar and return this * @param value scalar multiplier * @return this */ public SparseByteArray multiplyInplace(double value) { for (Entry e : entries()) { if (this.isUsed(e.index)) set(e.index, (byte)(value * e.value)); } return this; }