拥有这些类和接口..
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>
Line
Shape
ShapeCollection< T extends Shape>