Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 251 for geturl (0.18 sec)

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

        // re-order
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // evict 3, 4, 5
        getAll(cache, asList(10));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10);
    
        // re-order
        getAll(cache, asList(6, 7, 8));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // reorder
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(2, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // 3 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // reorder
        getAll(cache, asList(5, 7, 9));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          remove(key);
          return true;
        }
        return false;
      }
    
      @Override
      public boolean replace(K key, V oldValue, V newValue) {
        if (oldValue.equals(get(key))) {
          alertListenerIfPresent(key, oldValue, RemovalCause.REPLACED);
          put(key, newValue);
          return true;
        }
        return false;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        Closeable frq = (Closeable) sepFrqUserFrqF.get(null);
        frq.close();
    
        return new WeakReference<ClassLoader>(sepLoader);
      }
    
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheStats.java

       * implementing your own stats collector.
       */
      public long requestCount() {
        return saturatedAdd(hitCount, missCount);
      }
    
      /** Returns the number of times {@link Cache} lookup methods have returned a cached value. */
      public long hitCount() {
        return hitCount;
      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheStats.java

       * implementing your own stats collector.
       */
      public long requestCount() {
        return saturatedAdd(hitCount, missCount);
      }
    
      /** Returns the number of times {@link Cache} lookup methods have returned a cached value. */
      public long hitCount() {
        return hitCount;
      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // reorder
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(2, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // 3 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // reorder
        getAll(cache, asList(5, 7, 9));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

       * @param key key to associate with values in the collection
       * @return an empty collection of values
       */
      Collection<V> createCollection(@ParametricNullness K key) {
        return createCollection();
      }
    
      Map<K, Collection<V>> backingMap() {
        return map;
      }
    
      // Query Operations
    
      @Override
      public int size() {
        return totalSize;
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        return new StringSourceFactory();
      }
    
      public static ByteSourceFactory byteArraySourceFactory() {
        return new ByteArraySourceFactory();
      }
    
      public static ByteSourceFactory emptyByteSourceFactory() {
        return new EmptyByteSourceFactory();
      }
    
      public static CharSourceFactory emptyCharSourceFactory() {
        return new EmptyCharSourceFactory();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

            if (oldCount == 0) {
              // No change to make, but must return true if the element is not present
              return !countMap.containsKey(element);
            } else {
              return countMap.remove(element, oldCount);
            }
          }
          if (oldCount == 0) {
            return countMap.putIfAbsent(element, newCount) == null;
          }
          return countMap.replace(element, oldCount, newCount);
        }
    
        // Views
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
Back to top