I have enumeration like this:
public enum Configuration { XML(1), XSLT(10), TXT(100), HTML(2), DB(20); private final int id; pri
By storing the count you're violating the DRY principle, so unless you have a very good reason, you shouldn't.