Departing from traditional practice for JavaWorld’s Tips ‘N Tricks column, I will talk about when not to use a previously suggested trick. Specifically, the typesafe enum construct, covered in JDC ...
Get the scoop on typesafe enums and learn how to use them properly in switch statements, then get started with Java annotations and meta-annotations types like Target, which you can use to clarify the ...
I picked up adding a few meta values to enums a long time ago; I feel they make bounds checking and writing for loops more readable. But gcc has been giving me some grief about it in one way, here's ...
Community driven content discussing all aspects of software development from DevOps to design patterns. The Java enum, introduced in Java 5, will map to the underlying database without any ...