Extensible Java Enum.

As you know you can’t extend Enum in Java in order to add a new enumeration value since they are final. But what about the case that you want to use that enum in your code but at the same time allow additional values to be represented by that enum type. For example lets take […]