Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for loadAll (0.11 sec)

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

                reloadCount.incrementAndGet();
                return immediateFuture(new Object());
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) {
                loadAllCount.incrementAndGet();
                return ImmutableMap.of();
              }
            };
    
        assertEquals(0, loadCount.get());
        assertEquals(0, reloadCount.get());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    class TestingCacheLoaders {
    
      /**
       * Returns a {@link CacheLoader} that implements a naive {@link CacheLoader#loadAll}, delegating
       * {@link CacheLoader#load} calls to {@code loader}.
       */
      static <K, V> CacheLoader<K, V> bulkLoader(final CacheLoader<K, V> loader) {
        checkNotNull(loader);
        return new CacheLoader<K, V>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              @Override
              public Object load(Object key) throws Exception {
                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = Maps.newHashMap();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

        }
      }
    
      /**
       * Returns the result of calling {@link CacheLoader#loadAll}, or null if {@code loader} doesn't
       * implement {@code loadAll}.
       */
      @CheckForNull
      Map<K, V> loadAll(Set<? extends K> keys, CacheLoader<? super K, V> loader)
          throws ExecutionException {
        checkNotNull(loader);
        checkNotNull(keys);
        Stopwatch stopwatch = Stopwatch.createStarted();
        Map<K, V> result;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top