Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for mintan (0.36 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

                return builder.build(KEY_TO_STRING_LOADER);
              }
            });
      }
    
      public void testContainsKeyAndValue() {
        for (LoadingCache<Key, String> cache : caches()) {
          // maintain strong refs so these won't be collected, regardless of cache's key/value strength
          Key key = new Key(1);
          String value = key.toString();
          assertSame(value, cache.getUnchecked(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

         * multimap and its {@link Multimap#asMap()} view are {@link ImmutableSortedSet} instances.
         * However, serialization does not preserve that property, though it does maintain the key and
         * value ordering.
         *
         * @since 8.0
         */
        // TODO: Make serialization behavior consistent.
        @CanIgnoreReturnValue
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

              /*
               * We want to do this in long math for speed, but want to avoid overflow. We adapt the
               * technique previously used by BigIntegerMath: maintain separate numerator and
               * denominator accumulators, multiplying the fraction into result when near overflow.
               */
              for (int i = 2; i <= k; i++, n--) {
    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)
  4. android/guava/src/com/google/common/hash/Funnel.java

     *
     * <p>Note that serialization of {@linkplain BloomFilter bloom filters} requires the proper
     * serialization of funnels. When possible, it is recommended that funnels be implemented as a
     * single-element enum to maintain serialization guarantees. See Effective Java (2nd Edition), Item
     * 3: "Enforce the singleton property with a private constructor or an enum type". For example:
     *
     * <pre>{@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * example, we could compute the appropriate throttle time for an incoming request, and make the
       * calling thread wait for that time.
       *
       * The simplest way to maintain a rate of QPS is to keep the timestamp of the last granted
       * request, and ensure that (1/QPS) seconds have elapsed since then. For example, for a rate of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/LongAdder.java

    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * One or more variables that together maintain an initially zero {@code long} sum. When updates
     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
        // Lock while we check state. We must maintain the lock while adding the new pair so that
        // another thread can't run the list out from under us. We only add to the list if we have not
        // yet started execution.
        synchronized (this) {
          if (!executed) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      /**
       * Creates a new, empty {@code ConcurrentHashMultiset} using {@code countMap} as the internal
       * backing map.
       *
       * <p>This instance will assume ownership of {@code countMap}, and other code should not maintain
       * references to the map or modify it in any way.
       *
       * <p>The returned multiset is serializable if the input map is.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

      static <E> Queue<E> discardingQueue() {
        return (Queue) DISCARDING_QUEUE;
      }
    
      /*
       * Note: All of this duplicate code sucks, but it saves a lot of memory. If only Java had mixins!
       * To maintain this code, make a change for the strong reference type. Then, cut and paste, and
       * replace "Strong" with "Soft" or "Weak" within the pasted text. The primary difference is that
    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)
  10. guava/src/com/google/common/cache/LongAdder.java

    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * One or more variables that together maintain an initially zero {@code long} sum. When updates
     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
Back to top