I want to create a method that can convert a String to an unspecific enum.
Here's what I've got so far:
public static Enum<?> toEnum(Class<Enum> targetEnum, String name) {
return targetEnum.valueOf(targetEnum, name);
}
Something like this...