Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for global (0.17 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

      final Ticker ticker;
    
      /** Factory used to create new entries. */
      final EntryFactory entryFactory;
    
      /**
       * Accumulates global cache statistics. Note that there are also per-segments stats counters which
       * must be aggregated to obtain a global stats view.
       */
      final StatsCounter globalStatsCounter;
    
      /** The default cache loader to use on loading operations. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LongMath.java

       *     is not a power of two
       */
      @SuppressWarnings("fallthrough")
      // TODO(kevinb): remove after this warning is disabled globally
      public static int log2(long x, RoundingMode mode) {
        checkPositive("x", x);
        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(isPowerOfTwo(x));
            // fall through
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       * rate, and ability to be implemented with O(1) time complexity. The initial LRU implementation
       * operates per-segment rather than globally for increased implementation simplicity. We expect
       * the cache hit rate to be similar to that of a global LRU algorithm.
       */
    
      // Constants
    
      /**
       * The maximum capacity, used if a higher value is implicitly specified by either of the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Futures.java

       * one input completes with result X and another later with result Y, for Y to come before X in
       * the output future list. (Such races are impossible to solve without global synchronization of
       * all future completions. And they should have little practical impact.)
       *
       * <p>Cancelling a delegate future propagates to input futures once all the delegates complete,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/Dispatcher.java

       */
      static Dispatcher perThreadDispatchQueue() {
        return new PerThreadQueuedDispatcher();
      }
    
      /**
       * Returns a dispatcher that queues events that are posted in a single global queue. This behavior
       * matches the original behavior of AsyncEventBus exactly, but is otherwise not especially useful.
       * For async dispatch, an {@linkplain #immediate() immediate} dispatcher should generally be
       * preferable.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/Striped64.java

    import com.google.common.annotations.GwtIncompatible;
    import java.util.Random;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A package-local class holding common representation and mechanics for classes supporting dynamic
     * striping on 64bit values. The class extends Number so that concrete subclasses must publicly do
     * so.
     */
    @GwtIncompatible
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertEquals("FooBar{}", toTest);
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testToStringHelper_localInnerClass() {
        // Local inner classes have names ending like "Outer.$1Inner"
        class LocalInnerClass {}
        String toTest = MoreObjects.toStringHelper(new LocalInnerClass()).toString();
        assertEquals("LocalInnerClass{}", toTest);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

      final Ticker ticker;
    
      /** Factory used to create new entries. */
      final EntryFactory entryFactory;
    
      /**
       * Accumulates global cache statistics. Note that there are also per-segments stats counters which
       * must be aggregated to obtain a global stats view.
       */
      final StatsCounter globalStatsCounter;
    
      /** The default cache loader to use on loading operations. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          }
        }
      }
    
      /** Unblocks all threads and runs all listeners. */
      private static void complete(AbstractFuture<?> param, boolean callInterruptTask) {
        // Declare a "true" local variable so that the Checker Framework will infer nullness.
        AbstractFuture<?> future = param;
    
        Listener next = null;
        outer:
        while (true) {
          future.releaseWaiters();
          /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     * Pat Fisher, Mike Judd.
     */
    
    /*
     * Source:
     * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck/JSR166TestCase.java?revision=1.90
     * (We have made some trivial local modifications (commented out
     * uncompilable code).)
     */
    
    package com.google.common.util.concurrent;
    
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
Back to top