Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        assertThat(map.values).hasLength(10);
        assertEquals(10, map.size());
        for (int i = 0; i < 10; i++) {
          assertEquals(Integer.toString(i), map.get(i));
        }
      }
    
      public void testEntrySetValueAfterRemoved() {
        CompactHashMap<Integer, String> map = CompactHashMap.create();
        map.put(1, "1");
        Entry<Integer, String> entry = getOnlyElement(map.entrySet());
        map.remove(1);
        entry.setValue("one");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top