/** * Removes the first occurrence of the value from this IntBag, if * it is present. * * @param value * the value to be removed * * @return true, if value was removed */ public boolean removeValue(short value) throws ArrayIndexOutOfBoundsException { int index = indexOf(value); if (index > -1) remove(index); return index > -1; }
/** * Removes the first occurrence of the value from this IntBag, if * it is present. * * @param value * the value to be removed * * @return true, if value was removed */ public boolean removeValue(short value) throws ArrayIndexOutOfBoundsException { int index = indexOf(value); if (index > -1) remove(index); return index > -1; }