Enum implementing Generic interface
Is there any way to implement a generic interface and specify the types for each enum
public interfact IPrimaryKeyType<C extends Object> {
}
public enum PrimaryKeyType implements IPrimaryKeyType {
SINGLE,
COMPOSITE,
}
There is no way to specify the type for each enum element. Though you can specify the type for all enums as below.
public enum PrimaryKeyType implements IPrimaryKeyType<Object> {
SINGLE,
COMPOSITE,
}
Any ideas?

