@Documented @Target({METHOD,FIELD,TYPE}) @Retention(RUNTIME) @MapKey public @interface ClassKey
MapKey
Class<?>
If your map's keys can be constrained, consider using a custom annotation instead, with a member whose type is Class<? extends Something>.
Class<? extends Something>
java.lang.Class<?>
value
java.lang.Class<?> value