Using Enums Add comment to Wiki View in Wiki Edit Wiki page Printable Version

Some examples (inspired by the Java Enum Tutorial):

Or with a bit of refactoring, you could write the switch like this:

Here is a coin example:

Here is a planet example:



Results of your search request can come from various sources: the Groovy website itself, the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.

  By  -  pages  -  views  - last modified