- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for keyType (0.05 seconds)
-
android/guava/src/com/google/common/collect/EnumHashBiMap.java
/** * Returns a new, empty {@code EnumHashBiMap} using the specified key type. * * @param keyType the key type */ public static <K extends Enum<K>, V extends @Nullable Object> EnumHashBiMap<K, V> create( Class<K> keyType) { return new EnumHashBiMap<>(keyType); } /** * Constructs a new bimap with the same mappings as the specified map. If the specified map is anCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 5.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EnumBiMap.java
/** * Returns a new, empty {@code EnumBiMap} using the specified key and value types. * * @param keyType the key type * @param valueType the value type */ public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> create( Class<K> keyType, Class<V> valueType) { return new EnumBiMap<>(keyType, valueType); } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 6.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
EnumHashBiMap.create(emptyBimap); assertEquals(bimap3, emptyBimap); } @GwtIncompatible // keyType public void testKeyType() { EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class); assertEquals(Currency.class, bimap.keyType()); } public void testEntrySet() { // Bug 3168290 Map<Currency, String> map = ImmutableMap.of(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 8.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
}; } private <Q> Supplier<Q> getMapSupplier(Key<Q> key) { Key<?> keyType = key.getTypeParameter(0); Key<Object> valueType = key.getTypeParameter(1); if (keyType.getRawType() != String.class) { throw new DIException("Only String keys are supported for maps: " + key); } return () -> {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 16:01:38 GMT 2025 - 11.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/EnumBiMapTest.java
assertEquals(bimap3, emptyBimap); } @GwtIncompatible // keyType public void testKeyType() { EnumBiMap<Currency, Country> bimap = EnumBiMap.create(Currency.class, Country.class); assertEquals(Currency.class, bimap.keyType()); } @GwtIncompatible // valueType public void testValueType() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 11.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertEquals("java.lang.String", new Entry<String, Integer>() {}.keyType().toString()); } private static <K, V> TypeToken<Map<K, V>> mapOf(Class<K> keyType, Class<V> valueType) { return new TypeToken<Map<K, V>>() {}.where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 89K bytes - Click Count (0) -
doc/go_spec.html
called the key type. The <a href="#Representation_of_values">value</a> of an uninitialized map is <code>nil</code>. </p> <pre class="ebnf"> MapType = "map" "[" KeyType "]" ElementType . KeyType = Type . </pre> <p> The <a href="#Comparison_operators">comparison operators</a> <code>==</code> and <code>!=</code> must be fully defined
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 02 23:07:19 GMT 2025 - 286.5K bytes - Click Count (1)