/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | MapBinderTest.java | 132 Key.get(Types.mapOf(String.class, String.class)), in testAllBindings() 134 Key.get(Types.mapOf(String.class, Types.providerOf(String.class))), in testAllBindings() 136 Key.get(Types.mapOf(String.class, javaxProviderOf(String.class))), in testAllBindings() 138 Key.get(Types.mapOf(String.class, Types.setOf(String.class))), in testAllBindings() 140 Key.get(Types.mapOf(String.class, Types.setOf(Types.providerOf(String.class)))), in testAllBindings() 187 assertEquals(mapOf("a", "A", "b", "B", "c", "C", "d", "D", "e", "E"), abcde); in testMapBinderAggregatesMultipleModules() 213 assertEquals(mapOf("a", "A", "b", "B", "c", "C"), abc); in testMapBinderAggregationForAnnotationInstance() 239 assertEquals(mapOf("a", "A", "b", "B", "c", "C"), abc); in testMapBinderAggregationForAnnotationType() 269 assertEquals(mapOf("a", "A", "b", "B", "c", "C"), abc); in testMapBinderWithMultipleAnnotationValueSets() 270 assertEquals(mapOf("d", "D", "e", "E"), de); in testMapBinderWithMultipleAnnotationValueSets() [all …]
|
D | SpiUtils.java | 20 import static com.google.inject.multibindings.MapBinder.mapOf; 171 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapInjectorTest() 284 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapModuleTest()
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
D | MapBinder.java | 146 return newRealMapBinder(binder, keyType, valueType, Key.get(mapOf(keyType, valueType)), in newMapBinder() 167 Key.get(mapOf(keyType, valueType), annotation), in newMapBinder() 188 Key.get(mapOf(keyType, valueType), annotationType), in newMapBinder() 203 static <K, V> TypeLiteral<Map<K, V>> mapOf( in mapOf() method in MapBinder 206 Types.mapOf(keyType.getType(), valueType.getType())); in mapOf() 213 Types.mapOf(keyType.getType(), Types.providerOf(valueType.getType()))); in mapOfProviderOf() 221 Types.mapOf(keyType.getType(), in mapOfJavaxProviderOf() 229 Types.mapOf(keyType.getType(), Types.setOf(Types.providerOf(valueType.getType())))); in mapOfSetOfProviderOf() 246 valueTypeAndAnnotation.ofType(mapOf(keyType, valueType)), in newRealMapBinder() 338 this.multimapKey = mapKey.ofType(mapOf(keyType, setOf(valueType))); in RealMapBinder()
|
/external/guice/core/src/com/google/inject/util/ |
D | Types.java | 119 public static ParameterizedType mapOf(Type keyType, Type valueType) { in mapOf() method in Types
|
/external/guice/core/test/com/google/inject/util/ |
D | TypesTest.java | 75 assertEqualsBothWays(mapStringInteger, Types.mapOf(String.class, Integer.class)); in testListSetMap()
|
/external/guice/core/test/com/google/inject/ |
D | TypeLiteralTypeResolutionTest.java | 253 assertEquals(Types.mapOf(String.class, Integer.class), in testResolve()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenTest.java | 1176 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
|