我有以下课程:
Streamable界面DiaryEntry工具StreamableStatusEntry工具Streamable
还有一个stream字段是 a LinkedList<Ref<? extends Streamable>>,(在我看来)应该同时包含Ref<DiaryEntry>和Ref<StatusEntry>。
不幸的是,我错了,因为我在这一行得到一个编译错误:
ofy().load().refs(stream).values();
错误是:
The method refs(Iterable<Ref<E>>) in the type Loader is not applicable for the arguments (LinkedList<Ref<? extends Streamable>>)
是否有可能我以某种糟糕的方式对我的实体或字段进行了建模?该方法是否应该refs具有此签名refs(Iterable<Ref<? extends E>>)而不是当前签名?
谢谢