Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFromHashMap (0.07 sec)

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

        assertEquals(Collections.<String, Integer>emptyMap(), bimap);
        assertEquals(Collections.<Integer, String>emptyMap(), bimap.inverse());
      }
    
      public void testFromHashMap() {
        Map<String, Integer> hashMap = Maps.newLinkedHashMap();
        hashMap.put("one", 1);
        hashMap.put("two", 2);
        ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(hashMap);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top