Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for incremental (0.17 sec)

  1. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

        checkArgument(autoIncrementStep >= 0, "May not auto-increment by a negative amount");
        this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep);
        return this;
      }
    
      /**
       * Sets the increment applied to the ticker whenever it is queried.
       *
       * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
       * queried.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        entry.setValueReference(valueRef);
    
        // absent
        assertFalse(segment.removeLoadingValue(key, hash, valueRef));
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.removeLoadingValue(key, hash, valueRef));
        // no notification sent with removeLoadingValue
        assertTrue(map.removalNotificationQueue.isEmpty());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        entry.setValueReference(valueRef);
    
        // absent
        assertFalse(segment.removeLoadingValue(key, hash, valueRef));
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.removeLoadingValue(key, hash, valueRef));
        // no notification sent with removeLoadingValue
        assertTrue(map.removalNotificationQueue.isEmpty());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

                nanos -= System.nanoTime() - now; // subtract the actual time we waited
              }
            }
          }
        }
    
        /**
         * Checks if the executor has been shut down and increments the running task count.
         *
         * @throws RejectedExecutionException if the executor has been previously shutdown
         */
        private void startTask() {
          synchronized (lock) {
            if (shutdown) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       * {@code key}.
       */
      public long get(K key) {
        AtomicLong atomic = map.get(key);
        return atomic == null ? 0L : atomic.get();
      }
    
      /**
       * Increments by one the value currently associated with {@code key}, and returns the new value.
       */
      @CanIgnoreReturnValue
      public long incrementAndGet(K key) {
        return addAndGet(key, 1);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top