Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getAndAccumulate (0.23 sec)

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

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

          }
        }
      }
    
      /** getAndAccumulate with sum adds given value to current, and returns previous value */
      public void testGetAndAccumulateWithSum() {
        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.getAndAccumulate(i, y, Double::sum);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top