Home
last modified time | relevance | path

Searched refs:mapOf (Results 1 – 7 of 7) sorted by relevance

/external/guice/core/test/com/google/inject/internal/
DMapBinderTest.java134 Key.get(Types.mapOf(String.class, String.class)), in testAllBindings()
136 Key.get(Types.mapOf(String.class, Types.providerOf(String.class))), in testAllBindings()
138 Key.get(Types.mapOf(String.class, javaxProviderOf(String.class))), in testAllBindings()
140 Key.get(Types.mapOf(String.class, Types.setOf(String.class))), in testAllBindings()
142 Key.get(Types.mapOf(String.class, Types.setOf(Types.providerOf(String.class)))), in testAllBindings()
145 Types.mapOf(String.class, Types.setOf(Types.javaxProviderOf(String.class)))), in testAllBindings()
148 Types.mapOf(String.class, Types.collectionOf(Types.providerOf(String.class)))), in testAllBindings()
151 Types.mapOf( in testAllBindings()
212 assertEquals(mapOf("a", "A", "b", "B", "c", "C", "d", "D", "e", "E"), abcde); in testMapBinderAggregatesMultipleModules()
251 assertEquals(mapOf("a", "A", "b", "B", "c", "C"), abc); in testMapBinderAggregationForAnnotationInstance()
[all …]
DSpiUtils.java21 import static com.google.inject.internal.RealMapBinder.mapOf;
200 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapInjectorTest()
377 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapModuleTest()
/external/guice/core/src/com/google/inject/internal/
DRealMapBinder.java79 Key.get(mapOf(keyType, valueType)), in newMapRealBinder()
94 Key.get(mapOf(keyType, valueType), annotation), in newRealMapBinder()
113 Key.get(mapOf(keyType, valueType), annotationType), in newRealMapBinder()
119 static <K, V> TypeLiteral<Map<K, V>> mapOf(TypeLiteral<K> keyType, TypeLiteral<V> valueType) { in mapOf() method in RealMapBinder
121 TypeLiteral.get(Types.mapOf(keyType.getType(), valueType.getType())); in mapOf()
128 TypeLiteral.get(Types.mapOf(keyType.getType(), Types.providerOf(valueType.getType()))); in mapOfProviderOf()
137 Types.mapOf( in mapOfJavaxProviderOf()
147 Types.mapOf(keyType.getType(), Types.setOf(Types.providerOf(valueType.getType())))); in mapOfSetOfProviderOf()
155 Types.mapOf( in mapOfSetOfJavaxProviderOf()
164 Types.mapOf( in mapOfCollectionOfProviderOf()
[all …]
/external/guice/core/src/com/google/inject/util/
DTypes.java123 public static ParameterizedType mapOf(Type keyType, Type valueType) { in mapOf() method in Types
/external/guice/core/test/com/google/inject/util/
DTypesTest.java70 assertEqualsBothWays(mapStringInteger, Types.mapOf(String.class, Integer.class)); in testListSetMap()
/external/guice/core/test/com/google/inject/
DTypeLiteralTypeResolutionTest.java276 Types.mapOf(String.class, Integer.class), typeResolver.getSupertype(Map.class).getType()); in testResolve()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenTest.java1176 mapOf(String.class, Integer.class)); in testWhere()
1578 private static <K, V> TypeToken<Map<K, V>> mapOf(Class<K> keyType, Class<V> valueType) { in mapOf() method in TypeTokenTest