Is there any way to generate a field like this:
public static final TypedKey<String> UM_USR = new TypedKey<String>() {};
I didn't find any way to set the type of UM_USR to a generic interface.
Is there any way to generate a field like this:
public static final TypedKey<String> UM_USR = new TypedKey<String>() {};
I didn't find any way to set the type of UM_USR to a generic interface.
You need to use a
ParameterizedTypeName
instead of a simpleClassName
: