Enumerations cannot be extended, but they can implement interfaces. You can have an empty token interface (or better yet - let it include the methods you really need) and make this type of your member:
public class MyClass { public static interface EnumInterface {} public enum enumA implements EnumInterface {..} public enum enumB implements EnumInterface {..} public enum enumC implements EnumInterface {..} public enum enumD implements EnumInterface {..} private EnumInterface enumMember; }
source share