我有几门课:
标准班:
工作流图模型:
public class WorkflowGraphModel<T> implements IWorkflowGraphModel<T>
public WorkflowGraphModel( List<IWorkflowGraphEntry<T>> entries )
{
this.entries = entries;
}
工作流图入口:
public class WorkflowGraphEntry<T> implements IWorkflowGraphEntry<T>
特殊实现:
批准StepGraphEntry
public class ApprovalStepGraphEntry extends WorkflowGraphEntry<ApprovalStep>
批准StepGraphModel
public class ApprovalStepGraphModel extends WorkflowGraphModel<ApprovalStepGraphEntry>
public ApprovalStepGraphModel( List<ApprovalStepGraphEntry> stepEntries )
{
super( stepEntries );
}
调用时出错
super( stepEntries );
WorkflowGraphModel
无法将WorkflowGraphModel (java.util.List>)应用于 (java.util.List)
我不知道为什么编译器不知道ApprovalStepGraphEntry
implements IWorkflowGraphEntry
。在我看来,泛型设置得很好。