Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testAccumulateAndGetWithSum (0.1 sec)

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

            assertBitEquals(x, z);
            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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

              assertBitEquals(expectedMax, aa.get(i));
            }
          }
        }
      }
    
      /** 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top