Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for updateAndGet (0.06 seconds)

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

            assertBitEquals(x - y, a.get());
          }
        }
      }
    
      /** updateAndGet with sum stores sum of given value to current, and returns current value */
      public void testUpdateAndGetWithSum() {
        for (double x : VALUES) {
          for (double y : VALUES) {
            AtomicDouble a = new AtomicDouble(x);
            double z = a.updateAndGet(value -> value + y);
            assertBitEquals(x + y, z);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

            }
          }
        }
      }
    
      /** updateAndGet adds given value to current, and returns current value */
      public void testUpdateAndGetWithSum() {
        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.updateAndGet(i, value -> value + y);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 14.8K bytes
    - Click Count (0)
Back to Top