Using com.sun.codemodel, I would like to generate a generic LinkedList field. I can create a raw field using this code:
JDefinedClass masterClass;
String detailName;
JDefinedClass detailClass;
JFieldVar detailField = masterClass.field(JMod.PRIVATE, LinkedList.class, detailName);
But I could not find a way to create a LinkedList with a generic type of detailClass
.