Lines Matching refs:oldCount
231 public boolean setCount(E element, int oldCount, int newCount) {
234 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount))
235 == oldCount;
454 abstract int newCount(int oldCount);
459 int oldCount = countOrZero(originalEntry);
460 int newCount = newCount(oldCount);
461 if (oldCount == newCount) {
465 } else if (oldCount == 0) {
483 int newCount(int oldCount) {
484 checkArgument(countToAdd <= Integer.MAX_VALUE - oldCount, "Cannot add this many elements");
485 return oldCount + countToAdd;
498 int newCount(int oldCount) {
499 return Math.max(0, oldCount - countToRemove);
512 int newCount(int oldCount) {
528 int newCount(int oldCount) {
529 return (oldCount == expectedCount) ? setCount : oldCount;