Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getAndDecrement (0.05 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

                          case 3:
                            map.getAndIncrement(key);
                            threadSum++;
                            break;
                          case 4:
                            map.getAndDecrement(key);
                            threadSum--;
                            break;
                          case 5:
                            map.getAndAdd(key, delta);
                            threadSum += delta;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return getAndAdd(key, 1);
      }
    
      /**
       * Decrements by one the value currently associated with {@code key}, and returns the old value.
       */
      @CanIgnoreReturnValue
      public long getAndDecrement(K key) {
        return getAndAdd(key, -1);
      }
    
      /**
       * Adds {@code delta} to the value currently associated with {@code key}, and returns the old
       * value.
       */
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top