Annotation Interface LazyClassKey


@Target({METHOD,FIELD,TYPE}) @Retention(RUNTIME) @Documented @MapKey public @interface LazyClassKey
A MapKey annotation for maps with Class<?> keys.

The difference from ClassKey is that dagger generates a string representation for the class to use under the hood, which prevents loading unused classes at runtime.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details