Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMapMethods (0.12 sec)

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

        cache.put(10, 20);
        assertEquals(Integer.valueOf(20), cache.getIfPresent(10));
    
        fakeTicker.advance(500, TimeUnit.MILLISECONDS);
        assertEquals(null, cache.getIfPresent(10));
      }
    
      public void testMapMethods() {
        Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        ConcurrentMap<Integer, Integer> asMap = cache.asMap();
    
        cache.put(10, 100);
        cache.put(2, 52);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 15.1K bytes
    - Viewed (0)
Back to top