I need to set an enum value like so:
this.myEnum = ThirdPartyEnum.ABC;
But the value I have available to me is not in Enum form.
It's just a raw string:
"ABC"
The ThirdPartyEnum
does not have a ThirdPartyEnum.lookupEnumForString()
.
How do I translate the String
"ABC"
to:
ThirdPartyEnum.ABC