Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CountingLoader (0.09 sec)

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

          System.gc();
        }
        assertEquals(expectedComputations, countingLoader.getCount());
      }
    
      public void testReloadAfterSimulatedValueReclamation() throws ExecutionException {
        CountingLoader countingLoader = new CountingLoader();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder().concurrencyLevel(1).weakValues().build(countingLoader);
    
        Object key = new Object();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(EntryFactory.WEAK_ACCESS_WRITE, EntryFactory.getFactory(Strength.WEAK, true, true));
      }
    
      // computation tests
    
      public void testCompute() throws ExecutionException {
        CountingLoader loader = new CountingLoader();
        LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder());
        assertEquals(0, loader.getCount());
    
        Object key = new Object();
        Object value = map.get(key, loader);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top