Enums Are Classes Too
Many Java programmers only use enums as replacements for those magic numeric constants that represent flags in an application. Back in the day, those constants might be set to unique values from an incrementing sequence. In the more fancier case of combinable flags, they would ascend in…