Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newCount (0.03 sec)

  1. guava/src/com/google/common/collect/EnumMultiset.java

          return count(element);
        }
        int index = element.ordinal();
        int oldCount = counts[index];
        long newCount = (long) oldCount + occurrences;
        checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount);
        counts[index] = (int) newCount;
        if (oldCount == 0) {
          distinctElements++;
        }
        size += occurrences;
        return oldCount;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top