How to implement a Java IEnum interface?