Enum
Enum for Singleton and Utility class
enum Singleton { INSTANCE; } enum Utility { ; // no instances }
Related Article:
Reference: Java Secret: Using an enum to build a State machine from our JCG partner Peter Lawrey at the Vanilla Java blog
enum Singleton { INSTANCE; } enum Utility { ; // no instances }
Related Article:
Reference: Java Secret: Using an enum to build a State machine from our JCG partner Peter Lawrey at the Vanilla Java blog
We will contact you soon.