/** * Removes all the given keys from this Counter. * Keys may be included that are not actually in the * Counter - no action is taken in response to those * keys. This behavior should be retained in future * revisions of Counter (matches HashMap). * * @param keys The keys to remove from the Counter. Their values are * subtracted from the total count mass of the Counter. */ public void removeAll(Collection<E> keys) { for (E key : keys) { mutableRemove(key); } }
/** {@inheritDoc} */ @Override public double remove(E key) { MutableDouble d = mutableRemove(key); // this also updates totalCount if(d != null) { return d.doubleValue(); } return defaultValue; }
/** * Removes all the given keys from this Counter. * Keys may be included that are not actually in the * Counter - no action is taken in response to those * keys. This behavior should be retained in future * revisions of Counter (matches HashMap). * * @param keys The keys to remove from the Counter. Their values are * subtracted from the total count mass of the Counter. */ public void removeAll(Collection<E> keys) { for (E key : keys) { mutableRemove(key); } }
/** * Removes all the given keys from this Counter. * Keys may be included that are not actually in the * Counter - no action is taken in response to those * keys. This behavior should be retained in future * revisions of Counter (matches HashMap). * * @param keys The keys to remove from the Counter. Their values are * subtracted from the total count mass of the Counter. */ public void removeAll(Collection<E> keys) { for (E key : keys) { mutableRemove(key); } }
/** * Removes all the given keys from this Counter. * Keys may be included that are not actually in the * Counter - no action is taken in response to those * keys. This behavior should be retained in future * revisions of Counter (matches HashMap). * * @param keys The keys to remove from the Counter. Their values are * subtracted from the total count mass of the Counter. */ public void removeAll(Collection<E> keys) { for (E key : keys) { mutableRemove(key); } }
/** * Removes all the given keys from this Counter. * Keys may be included that are not actually in the * Counter - no action is taken in response to those * keys. This behavior should be retained in future * revisions of Counter (matches HashMap). * * @param keys The keys to remove from the Counter. Their values are * subtracted from the total count mass of the Counter. */ public void removeAll(Collection<E> keys) { for (E key : keys) { mutableRemove(key); } }
/** {@inheritDoc} */ @Override public double remove(E key) { MutableDouble d = mutableRemove(key); // this also updates totalCount if(d != null) { return d.doubleValue(); } return defaultValue; }
/** {@inheritDoc} */ public double remove(E key) { MutableDouble d = mutableRemove(key); // this also updates totalCount if(d != null) { return d.doubleValue(); } return defaultValue; }
/** {@inheritDoc} */ @Override public double remove(E key) { MutableDouble d = mutableRemove(key); // this also updates totalCount if(d != null) { return d.doubleValue(); } return defaultValue; }
/** {@inheritDoc} */ @Override public double remove(E key) { MutableDouble d = mutableRemove(key); // this also updates totalCount if(d != null) { return d.doubleValue(); } return defaultValue; }