SyntaxFix
Write A Post
Hire A Developer
Questions
You could perhaps use something like
interface EnumWithId { public int getId(); } enum Foo implements EnumWithId { ... }
That would reduce the need for reflection in your utility class.