Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for increment (0.14 sec)

  1. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(20, ticker.read());
    
        for (TimeUnit timeUnit : TimeUnit.values()) {
          ticker.setAutoIncrementStep(0, timeUnit);
          assertEquals(
              "Expected no auto-increment when setting autoIncrementStep to 0 " + timeUnit,
              30,
              ticker.read());
        }
      }
    
      public void testAutoIncrement_negative() {
        FakeTicker ticker = new FakeTicker();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

     * the response, the client will issue a conditional `GET`. The server will then send either
     * the updated response if it has changed, or a short 'not modified' response if the client's copy
     * is still valid. Such responses increment both the network count and hit count.
     *
     * The best way to improve the cache hit rate is by configuring the web server to return cacheable
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

                  if (workerRunningState == RUNNING) {
                    // Don't want to have two workers pulling from the queue.
                    return;
                  } else {
                    // Increment the run counter to avoid the ABA problem of a submitter marking the
                    // thread as QUEUED after it already ran and exhausted the queue before returning
                    // from execute().
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheStats.java

       * This is usually incremented in conjunction with {@link #missCount}, though {@code missCount} is
       * also incremented when an exception is encountered during cache loading (see {@link
       * #loadExceptionCount}). Multiple concurrent misses for the same key will result in a single load
       * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java

            assertEquals(1, statsObject.count.get());
    
            assertEquals(2, statsObject.increment());
            assertEquals(2, statsObject.count.get());
    
            assertEquals(1, statsObject.decrement());
            assertEquals(1, statsObject.count.get());
    
            assertEquals(0, statsObject.decrement());
            assertEquals(0, statsObject.count.get());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 15K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      private strictfp double trueLog2(double d) {
        double trueLog2 = StrictMath.log(d) / StrictMath.log(2);
        // increment until it's >= the true value
        while (StrictMath.pow(2.0, trueLog2) < d) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/InetAddresses.java

       * both IPv4 and IPv6 addresses.
       *
       * @param address the InetAddress to increment
       * @return a new InetAddress that is one more than the passed in address
       * @throws IllegalArgumentException if InetAddress is at the end of its range
       * @since 10.0
       */
      public static InetAddress increment(InetAddress address) {
        byte[] addr = address.getAddress();
        int i = addr.length - 1;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

                .removalListener(countingListener)
                .ticker(fakeTicker)
                .maximumSize(2)
                .build();
    
        // Add more than two elements to increment size removals.
        cache.put(3, 20);
        cache.put(6, 2);
        cache.put(98, 45);
        cache.put(56, 76);
        cache.put(23, 84);
    
        // Replace the two present elements.
        cache.put(23, 20);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

            assertNull(crawlingConfigHelper.getCrawlingConfig("W123"));
        }
    
        public void test_store_counterIncrement() {
            final String sessionId = "testSession";
    
            // Test counter increment
            String sessionCountId1 = crawlingConfigHelper.store(sessionId, crawlingConfigHelper.getCrawlingConfig("W1"));
            assertEquals("testSession-1", sessionCountId1);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      /** Guard for waiting takes */
      private final Monitor.Guard notEmpty;
    
      /** Guard for waiting puts */
      private final Monitor.Guard notFull;
    
      // Internal helper methods
    
      /** Circularly increment i. */
      final int inc(int i) {
        return (++i == items.length) ? 0 : i;
      }
    
      /**
       * Inserts element at current put position, advances, and signals. Call only when occupying
       * monitor.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top