Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertTrue(multimap.containsKey("bar"));
        assertEquals(singleton(2), multimap.removeAll("bar"));
        assertEquals(2, multimap.size());
        assertFalse(multimap.containsKey("bar"));
      }
    
      public void testForMapAsMap() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        Map<String, Collection<Integer>> asMap = Multimaps.forMap(map).asMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top