Generate an override to toString() that does the inverse of what parse() is doning now.
The use case is that I want to use the value in the build logic (e.g. to pass it to another tool like git) and not just check the enum values in a if/switch statement. I still want to use enumeration instead of string as parameter type to limit the set of allowed values.
Generate an override to
toString()
that does the inverse of whatparse()
is doning now.The use case is that I want to use the value in the build logic (e.g. to pass it to another tool like
git
) and not just check the enum values in a if/switch statement. I still want to use enumeration instead of string as parameter type to limit the set of allowed values.