Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for accumulateAndGet (0.37 sec)

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

            assertBitEquals(expectedMax, a.get());
          }
        }
      }
    
      /** accumulateAndGet with sum adds given value to current, and returns current value */
      public void testAccumulateAndGetWithSum() {
        for (double x : VALUES) {
          for (double y : VALUES) {
            AtomicDouble a = new AtomicDouble(x);
            double z = a.accumulateAndGet(y, Double::sum);
            assertBitEquals(x + y, z);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          }
        }
      }
    
      /** accumulateAndGet with sum adds given value to current, and returns current value */
      public void testAccumulateAndGetWithSum() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
          for (double x : VALUES) {
            for (double y : VALUES) {
              aa.set(i, x);
              double z = aa.accumulateAndGet(i, y, Double::sum);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AtomicDouble.java

       *
       * @param delta the value to add
       * @return the updated value
       */
      @CanIgnoreReturnValue
      public final double addAndGet(double delta) {
        return accumulateAndGet(delta, Double::sum);
      }
    
      /**
       * Atomically updates the current value with the results of applying the given function to the
       * current and given values.
       *
       * @param x the update value
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       *
       * @param i the index
       * @param delta the value to add
       * @return the updated value
       */
      @CanIgnoreReturnValue
      public double addAndGet(int i, double delta) {
        return accumulateAndGet(i, delta, Double::sum);
      }
    
      /**
       * Atomically updates the element at index {@code i} with the results of applying the given
       * function to the current and given values.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

      /**
       * Adds {@code delta} to the value currently associated with {@code key}, and returns the new
       * value.
       */
      @CanIgnoreReturnValue
      public long addAndGet(K key, long delta) {
        return accumulateAndGet(key, delta, Long::sum);
      }
    
      /**
       * Increments by one the value currently associated with {@code key}, and returns the old value.
       */
      @CanIgnoreReturnValue
      public long getAndIncrement(K key) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top