How to save an enumeration class in another enumeration class in Java?
I have a table that stores enumeration type values for web select. Here is the table structure:
Is it possible to extend an Enum in Java?
Is it possible to extend a Jave enum with additional values?
Looking to create a hierarchical enums
So basically I want to create a enum class that has a main type that will branch out to a sub type and each sub type has a second sub type. The best example for this would be Car. Assume there Honda and a Toyota based on the enum instantiation I want that specific sub type to be limited to, like wise the the second sub typ. for example Car: Honda – Model: Civic – trim: EX, Hybrid. If Toyota – Model: Camry – trim: Sport