- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for HashBiMap (0.12 sec)
-
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) -
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) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
"chile", "peso", "switzerland", "franc"); HashBiMap<String, String> bimap = HashBiMap.create(map); assertEquals("dollar", bimap.get("canada")); assertEquals("canada", bimap.inverse().get("dollar")); } private static final int N = 1000; public void testBashIt() throws Exception { BiMap<Integer, Integer> bimap = HashBiMap.create(N); BiMap<Integer, Integer> inverse = bimap.inverse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredBiMapTest.java
@GwtCompatible @ElementTypesAreNonnullByDefault public class FilteredBiMapTest extends AbstractFilteredMapTest { @Override BiMap<String, Integer> createUnfiltered() { return HashBiMap.create(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 899 bytes - Viewed (0) -
guava/src/com/google/common/collect/BiMap.java
* bimap containing the same entries as this bimap but with reversed keys and values. * * <h3>Implementations</h3> * * <ul> * <li>{@link ImmutableBiMap} * <li>{@link HashBiMap} * <li>{@link EnumBiMap} * <li>{@link EnumHashBiMap} * </ul> * * <p>See the Guava User Guide article on <a href= * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#bimap">{@code BiMap}</a>.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Jun 17 14:40:53 UTC 2023 - 4.3K bytes - Viewed (0) -
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) -
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) -
android/guava/src/com/google/common/collect/BiMap.java
* bimap containing the same entries as this bimap but with reversed keys and values. * * <h3>Implementations</h3> * * <ul> * <li>{@link ImmutableBiMap} * <li>{@link HashBiMap} * <li>{@link EnumBiMap} * <li>{@link EnumHashBiMap} * </ul> * * <p>See the Guava User Guide article on <a href= * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#bimap">{@code BiMap}</a>.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Jun 17 14:40:53 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
} public void testCreate() { EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class); assertTrue(bimap.isEmpty()); assertEquals("{}", bimap.toString()); assertEquals(HashBiMap.create(), bimap); bimap.put(Currency.DOLLAR, "dollar"); assertEquals("dollar", bimap.get(Currency.DOLLAR)); assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.2K bytes - Viewed (0) -
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)