Enums
-
Enterprise Java
Integrating Java Enums with JPA and PostgreSQL Enums
Enums are a powerful feature in Java, allowing us to define a fixed set of constants. When using JPA (Java…
Read More » -
Core Java
Supply Enum Value to an Annotation From a Constant in Java
In this tutorial, we will delve into how Java allows us to use a constant to supply an enum value…
Read More » -
Core Java
Of Hacking Enums and Modifying ‘final static’ Fields
In this newsletter, originally published in The Java Specialists’ Newsletter Issue 161 we examine how it is possible to create…
Read More » -
Core Java
Java Enums: You have grace, elegance and power and this is what I Love!
While Java 8 is coming, are you sure you know well the enums that were introduced in Java 5? Java…
Read More » -
Core Java
Java Enum puzzler
Let’s suppose we have the following code: enum Case { CASE_ONE, CASE_TWO, CASE_THREE; private static final int counter; private int…
Read More »