Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for addAndGet (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

            }
          }
        }
      }
    
      /** addAndGet adds given value to current, and returns current value */
      public void testAddAndGet() {
        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.addAndGet(i, y);
              assertBitEquals(x + y, z);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

           */
          int frequency = requireNonNull(currentEntry).getValue().get();
          if (frequency <= 0) {
            throw new ConcurrentModificationException();
          }
          if (currentEntry.getValue().addAndGet(-1) == 0) {
            entryIterator.remove();
          }
          size--;
          canRemove = false;
        }
      }
    
      @Override
      public int count(@Nullable Object element) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

            bytesTransferred.addAndGet(bytes);
            totalSendTime.addAndGet(durationNanos);
        }
    
        /**
         * Record an RDMA receive operation
         *
         * @param bytes number of bytes received
         * @param durationNanos operation duration in nanoseconds
         */
        public void recordRdmaReceive(int bytes, long durationNanos) {
            rdmaReceives.incrementAndGet();
            bytesTransferred.addAndGet(bytes);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                            long start = System.nanoTime();
                            mockBytesEncrypted.addAndGet(1024); // Simulate 1KB message
                            long end = System.nanoTime();
    
                            totalTime.addAndGet(end - start);
                            operations.incrementAndGet();
                        }
                    } catch (InterruptedException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertFalse(map.containsKey(key));
    
        assertEquals(value, map.addAndGet(key, value));
        assertEquals(value, map.get(key));
    
        assertEquals(0L, map.addAndGet(key, -1 * value));
        assertEquals(0L, map.get(key));
        assertTrue(map.containsKey(key));
    
        assertEquals(value, map.addAndGet(key, value));
        assertEquals(value, map.get(key));
      }
    
      public void testGetAndAdd() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        RemovalListener<Integer, AtomicInteger> removalListener =
            notification -> {
              if (notification.wasEvicted()) {
                evictionCount.incrementAndGet();
                totalSum.addAndGet(notification.getValue().get());
              }
            };
    
        CacheLoader<Integer, AtomicInteger> loader =
            new CacheLoader<Integer, AtomicInteger>() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  7. src/main/java/jcifs/util/SmbCircuitBreaker.java

                // Track time in open state
                if (oldState == State.OPEN && openStateStartTime.get() > 0) {
                    totalTimeInOpen.addAndGet(System.currentTimeMillis() - openStateStartTime.get());
                    openStateStartTime.set(0);
                }
    
                if (newState == State.OPEN) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
Back to Top