Lines Matching refs:oldCount
316 * only if the count is currently {@code oldCount}. If {@code element} does
317 * not appear in the multiset exactly {@code oldCount} times, no changes will
322 * {@code oldCount == newCount}, the method will return {@code true} if
324 * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is
327 @Override public boolean setCount(E element, int oldCount, int newCount) {
328 checkNonnegative(oldCount, "oldCount");
331 if (oldCount == 0) {
335 return countMap.remove(element, oldCount);
338 if (oldCount == 0) {
341 return countMap.replace(element, oldCount, newCount);