- Sort Score
- Num 10 results
- Language All
Results 11 - 19 of 19 for keyType (0.15 seconds)
-
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 Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 16:01:38 GMT 2025 - 11.4K bytes - Click Count (0) -
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 Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertThat(new Entry<String, Integer>() {}.keyType().toString()).isEqualTo("java.lang.String"); } 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/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 Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertThat(new Entry<String, Integer>() {}.keyType().toString()).isEqualTo("java.lang.String"); } 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
* any {@code K} and {@code V} type: * * {@snippet : * static <K, V> TypeToken<Map<K, V>> mapOf( * TypeToken<K> keyType, TypeToken<V> valueType) { * return new TypeToken<Map<K, V>>() {} * .where(new TypeParameter<K>() {}, keyType) * .where(new TypeParameter<V>() {}, valueType); * } * } * * @param <X> The parameter typeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
* @param <V> the value type of {@link EnumMap} * @param keyType the class object of the key type for this {@literal enum} map * @return a new instance of {@link EnumMap} * @see EnumMap#EnumMap(Class) */ public static <K extends Enum<K>, V> EnumMap<K, V> newEnumMap(final Class<K> keyType) { return new EnumMap<>(keyType); } /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 49.9K 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 Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Apr 01 23:39:18 GMT 2026 - 287.8K bytes - Click Count (1) -
compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java
implements Toolchain, ToolchainPrivate { private final Logger logger; private String type; private Map<String, RequirementMatcher> provides = new HashMap<>(); public static final String KEY_TYPE = "type"; // NOI18N private ToolchainModel model; /** * * @param model the model, must not be {@code null} * @param logger the logger, must not be {@code null} */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Feb 12 13:13:28 GMT 2025 - 4.8K bytes - Click Count (0)