Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getAndAdd (0.15 sec)

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

        assertEquals(0L, map.get(key));
        assertFalse(map.containsKey(key));
    
        assertEquals(0L, map.getAndAdd(key, value));
        assertEquals(value, map.get(key));
    
        assertEquals(value, map.getAndAdd(key, -1 * value));
        assertEquals(0L, map.get(key));
        assertTrue(map.containsKey(key));
    
        assertEquals(0L, map.getAndAdd(key, value));
        assertEquals(value, map.get(key));
      }
    
      public void testPut() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/LongAddables.java

        @Override
        public void increment() {
          getAndIncrement();
        }
    
        @Override
        public void add(long x) {
          getAndAdd(x);
        }
    
        @Override
        public long sum() {
          return get();
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       */
      @CanIgnoreReturnValue
      public long getAndIncrement(K key) {
        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);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

      public FakeTicker setAutoIncrementStep(Duration autoIncrementStep) {
        return setAutoIncrementStep(autoIncrementStep.toNanos(), NANOSECONDS);
      }
    
      @Override
      public long read() {
        return nanos.getAndAdd(autoIncrementStepNanos);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/FakeTicker.java

      public FakeTicker setAutoIncrementStep(Duration autoIncrementStep) {
        return setAutoIncrementStep(autoIncrementStep.toNanos(), NANOSECONDS);
      }
    
      @Override
      public long read() {
        return nanos.getAndAdd(autoIncrementStepNanos);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

                    break;
                } catch (final Exception e) {
                    exception = new SuggesterException(e);
                    scrollId = null;
                }
            }
    
            docCount.getAndAdd(queue.size());
    
            if (exception != null) {
                throw exception;
            }
        }
    
        /**
         * Calculates the limit document number based on total, percentage, and number.
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       *
       * @param i the index
       * @param delta the value to add
       * @return the previous value
       */
      @CanIgnoreReturnValue
      public final double getAndAdd(int i, double delta) {
        return getAndAccumulate(i, delta, Double::sum);
      }
    
      /**
       * Atomically adds the given value to the element at index {@code i}.
       *
       * @param i the index
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top