Package dagger.multibindings
This package contains the API by which Dagger allows you to bind several objects into a
collection that can be injected without depending directly on each of the individual bindings.
- See Also:
- Multibindings in the Dagger User's Guide
-
Annotation Types Summary Annotation Type Description ClassKey AMapKey
annotation for maps withClass<?>
keys.ElementsIntoSet The method's return type isSet<T>
and all values are contributed to the set.IntKey AMapKey
annotation for maps withint
keys.IntoMap The method's return type forms the type argument for the value of aMap<K, Provider<V>>
, and the combination of the annotated key and the returned value is contributed to the map as a key/value pair.IntoSet The method's return type forms the generic type argument of aSet<T>
, and the returned value is contributed to the set.LongKey AMapKey
annotation for maps withlong
keys.Multibinds Annotates abstract module methods that declare multibindings.StringKey AMapKey
annotation for maps withString
keys.