Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for negCount (0.06 sec)

  1. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        AtomicInteger existingCounter = safeGet(countMap, element);
        if (existingCounter == null) {
          if (expectedOldCount != 0) {
            return false;
          } else if (newCount == 0) {
            return true;
          } else {
            // if our write lost the race, it must have lost to a nonzero value, so we can stop
            return countMap.putIfAbsent(element, new AtomicInteger(newCount)) == null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          oldCount = 0;
          backingMap.put(element, new Count(occurrences));
        } else {
          oldCount = frequency.get();
          long newCount = (long) oldCount + (long) occurrences;
          checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount);
          frequency.add(occurrences);
        }
        size += occurrences;
        return oldCount;
      }
    
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Synchronized.java

            return delegate().setCount(element, count);
          }
        }
    
        @Override
        public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
          synchronized (mutex) {
            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
        @Override
        public Set<E> elementSet() {
          synchronized (mutex) {
            if (elementSet == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Synchronized.java

            return delegate().setCount(element, count);
          }
        }
    
        @Override
        public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
          synchronized (mutex) {
            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
        @Override
        public Set<E> elementSet() {
          synchronized (mutex) {
            if (elementSet == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
Back to top