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?

[519 byte] By [sriramnutakkia] at [2007-10-2 15:53:56]
# 1
The best way to answer questions like this is to look at the spec: http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.9The answer seems to be that what you're trying to do is impossible.
YAT_Archivista at 2007-7-13 16:07:20 > top of Java-index,Java Essentials,Java Programming...