Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testAsMapReadsThrough (0.18 sec)

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

        assertNull(map.get("five"));
        assertThat(map.entrySet())
            .containsExactly(mapEntry("one", 3), mapEntry("two", 3), mapEntry("three", 5))
            .inOrder();
      }
    
      public void testAsMapReadsThrough() {
        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