enum
-
Core Java
Convert One Enum to Another in Java
This tutorial discusses how to convert one enum to another enum in Java. We will explore various approaches to achieve…
Read More » -
Core Java
Enum to String Java
In this article, we’ll explore how to convert Java enum to string in a variety of ways, including using the…
Read More » -
hibernate
Hibernate Enum Type Mapping Example
In hibernate; developers can map the Java Enum type to a column in the database. In this tutorial, we will…
Read More » -
Enum
Using an enum as a state machine
In this short example, a parser state machine processes raw XML from a ByteBuffer. Each state has its own process…
Read More » -
Enum
Each Enum Instance a different sub-class
In this example we shall show you how to have each enum instance represent a different sub-class. To make each enum…
Read More » -
Enum
Enum to implement an interface
With this example we are going to demonstrate how to use an enum to implement an interface. Implementing an interface…
Read More » -
Enum
Enum for Singleton and Utility class
enum Singleton { INSTANCE; } enum Utility { ; // no instances } Related Article: Java Secret: Using an enum…
Read More »