Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for HashBiMap (0.14 sec)

  1. guava/src/com/google/common/collect/HashBiMap.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class HashBiMap<K extends @Nullable Object, V extends @Nullable Object>
        extends IteratorBasedAbstractMap<K, V> implements BiMap<K, V>, Serializable {
    
      /** Returns a new, empty {@code HashBiMap} with the default initial capacity (16). */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create() {
        return create(16);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/HashBiMap.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class HashBiMap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMap<K, V> implements BiMap<K, V>, Serializable {
    
      /** Returns a new, empty {@code HashBiMap} with the default initial capacity (16). */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create() {
        return create(16);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.base.Ticker;
    import com.google.common.collect.ArrayListMultimap;
    import com.google.common.collect.BiMap;
    import com.google.common.collect.HashBasedTable;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.HashMultiset;
    import com.google.common.collect.ImmutableBiMap;
    import com.google.common.collect.ImmutableCollection;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      static <K, V> BiMap<K, V> generateBimap(@Nullable K key, @Nullable V value) {
        return generateHashBiMap(key, value);
      }
    
      @Generates
      static <K, V> HashBiMap<K, V> generateHashBiMap(@Nullable K key, @Nullable V value) {
        HashBiMap<K, V> bimap = HashBiMap.create();
        bimap.put(key, value);
        return bimap;
      }
    
      @Generates
      static <K, V> ImmutableBiMap<K, V> generateImmutableBimap(K key, V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      static <K, V> BiMap<K, V> generateBimap(@Nullable K key, @Nullable V value) {
        return generateHashBiMap(key, value);
      }
    
      @Generates
      static <K, V> HashBiMap<K, V> generateHashBiMap(@Nullable K key, @Nullable V value) {
        HashBiMap<K, V> bimap = HashBiMap.create();
        bimap.put(key, value);
        return bimap;
      }
    
      @Generates
      static <K, V> ImmutableBiMap<K, V> generateImmutableBimap(K key, V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.base.Ticker;
    import com.google.common.collect.ArrayListMultimap;
    import com.google.common.collect.BiMap;
    import com.google.common.collect.HashBasedTable;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.HashMultiset;
    import com.google.common.collect.ImmutableBiMap;
    import com.google.common.collect.ImmutableCollection;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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