Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for HashBiMap (0.06 sec)

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

          }
        };
      }
    
      enum BiMapImpl implements MapsImplEnum {
        HashBiMapImpl {
          @Override
          public <K extends Comparable<K>, V> BiMap<K, V> create(Map<K, V> map) {
            return HashBiMap.create(map);
          }
        },
        ImmutableBiMapImpl {
          @Override
          public <K extends Comparable<K>, V> BiMap<K, V> create(Map<K, V> map) {
            return ImmutableBiMap.copyOf(map);
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

      public void testCreate() {
        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(Currency.class, Country.class);
        assertTrue(bimap.isEmpty());
        assertEquals("{}", bimap.toString());
        assertEquals(HashBiMap.create(), bimap);
        bimap.put(Currency.DOLLAR, Country.CANADA);
        assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
        assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        };
      }
    
      enum BiMapImpl implements MapsImplEnum {
        HashBiMapImpl {
          @Override
          public <K extends Comparable<K>, V> BiMap<K, V> create(Map<K, V> map) {
            return HashBiMap.create(map);
          }
        },
        ImmutableBiMapImpl {
          @Override
          public <K extends Comparable<K>, V> BiMap<K, V> create(Map<K, V> map) {
            return ImmutableBiMap.copyOf(map);
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top