I have a simple key-value property file where I need to parse a value which is then to be assigned to an enum type. What is the best way to do this?
The only thing that comes up to my mind is something like iterating through all the possible values of the enums.toString and see if it equals any of them.