Most Java developers know of Java enums. Most developers also know that each field of an enum can define its own methods. But even most of those who know that are not aware they can define a contract each field of the enum must implement.
It might seem a useless piece of information. Yet, in my own case, it was really useful to me… Continue reading Use attributes and interfaces on Java enums