Community

Two ways to extend enum functionality

(Alexander Radzin) In my previous article I explained how and why to use enums instead of switch/case control structure in Java code. Here I will show how to extend functionality of existing enums.