私は次のクラスを持っています:
- Streamableインターフェース
- DiaryEntry実装します- Streamable
- StatusEntry実装します- Streamable
そして、(私の考えでは) と の両方を含むべきである であるstreamフィールド。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>>)ですか?
ありがとう