拥有这些类和接口..
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>>();
当我尝试MyClass向. shapeCollections_ MyClass_ ShapeCollection< Shape>_ 我试图更改为没有结果。任何帮助将非常感激。ShapeCollection< Line>LineShapeShapeCollection< T extends Shape>