DEV Community

Discussion on: How not to design an Enum (Java)

Collapse
 
alainvanhout profile image
Alain Van Hout

I would also suggest adding an explicit 'id' field instead of relying on the ordinal. Otherwise careless reordering (to make the order make more sense) would break the application.