Searched refs:MapKey (Results 1 - 25 of 50) sorted by relevance

12

/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
H A DBooleanKey.java18 import dagger.MapKey;
20 @MapKey(unwrapValue = true)
H A DByteKey.java18 import dagger.MapKey;
20 @MapKey(unwrapValue = true)
H A DCharKey.java18 import dagger.MapKey;
20 @MapKey(unwrapValue = true)
H A DShortKey.java18 import dagger.MapKey;
20 @MapKey(unwrapValue = true)
H A DNestedAnnotationContainer.java18 import dagger.MapKey;
22 @MapKey(unwrapValue = false)
H A DNumberClassKey.java18 import dagger.MapKey;
20 @MapKey(unwrapValue = true)
H A DUnwrappedAnnotationKey.java18 import dagger.MapKey;
21 @MapKey(unwrapValue = true)
H A DWrappedAnnotationKey.java18 import dagger.MapKey;
22 @MapKey(unwrapValue = false)
/external/dagger2/core/src/main/java/dagger/mapkeys/
H A DClassKey.java18 import dagger.MapKey;
25 * A {@link MapKey} annotation for maps with {@code Class<?>} keys.
32 @MapKey
H A DIntKey.java18 import dagger.MapKey;
24 /** A {@link MapKey} annotation for maps with {@code int} keys. */
27 @MapKey
H A DLongKey.java18 import dagger.MapKey;
24 /** A {@link MapKey} annotation for maps with {@code long} keys. */
27 @MapKey
H A DStringKey.java18 import dagger.MapKey;
24 /** A {@link MapKey} annotation for maps with {@link String} keys. */
27 @MapKey
/external/dagger2/core/src/main/java/dagger/
H A DMapKey.java33 * with {@code @MapKey}.
41 * {@literal @}MapKey
75 * {@literal @}MapKey(unwrapValue = false)
106 public @interface MapKey { interface
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
H A DClassMapKey.java31 @MapKey(unwrapValue = true)
H A DMapKey.java33 * your own MapKey annotation, such as this one for an enum:
36 * {@literal @}MapKey(unwrapValue = true)
53 public @interface MapKey { interface
H A DStringMapKey.java31 @MapKey(unwrapValue = true)
H A DMultibindingsScanner.java84 binder.addError("Found a MapKey annotation on non map binding at %s.", method);
89 // Already failed on the MapKey, don't bother doing more work.
93 // If no MapKey, make an error and abort.
94 binder.addError("No MapKey found for map binding at %s.", method);
102 binder.addError("Found a MapKey annotation on non map binding at %s.", method);
135 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class);
138 binder.addError("Found more than one MapKey annotations on %s.", method);
146 binder.addError("Array types are not allowed in a MapKey with unwrapValue=true: %s",
151 binder.addError("No 'value' method in MapKey wit
[all...]
/external/protobuf/src/google/protobuf/
H A Dmap_field.h50 class MapKey;
89 virtual bool ContainsMapKey(const MapKey& map_key) const = 0;
91 const MapKey& map_key, MapValueRef* val) = 0;
92 virtual bool DeleteMapValue(const MapKey& map_key) = 0;
254 bool ContainsMapKey(const MapKey& map_key) const;
255 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val);
256 bool DeleteMapValue(const MapKey& map_key);
298 class LIBPROTOBUF_EXPORT DynamicMapField: public TypeDefinedMapFieldBase<MapKey, MapValueRef> {
305 bool ContainsMapKey(const MapKey& map_key) const;
306 bool InsertOrLookupMapValue(const MapKey
[all...]
H A Dmap_field.cc156 : TypeDefinedMapFieldBase<MapKey, MapValueRef>(arena),
163 for (Map<MapKey, MapValueRef>::iterator iter = map_.begin();
175 const MapKey& map_key) const {
176 const Map<MapKey, MapValueRef>& map = GetMap();
177 Map<MapKey, MapValueRef>::const_iterator iter = map.find(map_key);
182 const MapKey& map_key, MapValueRef* val) {
185 Map<MapKey, MapValueRef>* map = MutableMap();
186 Map<MapKey, MapValueRef>::iterator iter = map->find(map_key);
229 bool DynamicMapField::DeleteMapValue(const MapKey& map_key) {
231 Map<MapKey, MapValueRe
[all...]
H A Dmap_field_inl.h48 T UnwrapMapKey(const MapKey& map_key);
50 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
54 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
58 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
62 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
66 inline bool UnwrapMapKey<bool>(const MapKey& map_key) {
70 inline string UnwrapMapKey<string>(const MapKey& map_key) {
76 inline void SetMapKey(MapKey* map_key, const T& value);
78 inline void SetMapKey<int32>(MapKey* map_key, const int32& value) {
82 inline void SetMapKey<uint32>(MapKey* map_ke
[all...]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
H A DMapKeyProcessingStep.java23 import dagger.MapKey;
39 * implementation of annotations marked with &#064MapKey where necessary.
63 return ImmutableSet.<Class<? extends Annotation>>of(MapKey.class);
69 for (Element element : elementsByAnnotation.get(MapKey.class)) {
74 MapKey mapkey = element.getAnnotation(MapKey.class);
H A DMapKeyValidator.java18 import dagger.MapKey;
31 * A validator for {@link MapKey} annotations.
43 } else if (element.getAnnotation(MapKey.class).unwrapValue()) {
H A DMapKeys.java23 import dagger.MapKey;
55 * Methods for extracting {@link MapKey} annotations and key snippets from binding elements.
60 * If {@code bindingElement} is annotated with a {@link MapKey} annotation, returns it.
62 * @throws IllegalArgumentException if the element is annotated with more than one {@code MapKey}
73 * Returns all of the {@link MapKey} annotations that annotate {@code bindingElement}.
76 return getAnnotatedAnnotations(bindingElement, MapKey.class);
81 * {@link MapKey @MapKey(unwrapValue = true)}.
84 * {@link MapKey @MapKey} a
[all...]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
H A DWorkerModule.java26 import dagger.MapKey;
78 @MapKey(unwrapValue = true)
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
H A DProvidesIntoTest.java169 @MapKey(unwrapValue = true)
175 @MapKey(unwrapValue = false)
210 @MapKey(unwrapValue = true)
227 "Array types are not allowed in a MapKey with unwrapValue=true: "
233 @MapKey(unwrapValue = false)
282 assertContains(ce.getMessage(), "Found a MapKey annotation on non map binding at "
302 assertContains(ce.getMessage(), "Found a MapKey annotation on non map binding at "
317 assertContains(ce.getMessage(), "No MapKey found for map binding at "
322 @MapKey(unwrapValue = true)
344 assertContains(ce.getMessage(), "Found more than one MapKey annotation
[all...]

Completed in 414 milliseconds

12