Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testAsMapWritesThrough (0.36 sec)

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

        strings.add("four");
        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5, "four", 4), map);
        assertEquals(Integer.valueOf(4), map.get("four"));
      }
    
      public void testAsMapWritesThrough() {
        Set<String> strings = Sets.newLinkedHashSet();
        Collections.addAll(strings, "one", "two", "three");
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
Back to top