Package dagger.multibindings
Annotation Type ElementsIntoSet
-
@Documented @Target(METHOD) @Retention(RUNTIME) public @interface ElementsIntoSet
The method's return type isSet<T>
and all values are contributed to the set. TheSet<T>
produced from the accumulation of values will be immutable. An example use is to provide a default empty set binding, which is otherwise not possible usingIntoSet
.- See Also:
- Set multibinding