これらのクラスとインターフェースを持つ..
public interface Shape;
public interface Line extends Shape
public interface ShapeCollection< Shape>
public class MyClass implements ShapeCollection< Line>
List< ShapeCollection< Shape>> shapeCollections = new LinkedList< ShapeCollection< Shape>>();
のインスタンスを に追加しようとすると、Eclipse は への拡張機能を実装しているため、既に実装されている場合でもMyClass
実装を許可するよう求めます。に変更しようとしましたが、結果はありません。どんな助けでも大歓迎です。shapeCollections
MyClass
ShapeCollection< Shape>
ShapeCollection< Line>
Line
Shape
ShapeCollection< T extends Shape>