私は次の階層を持っています:
abstract class customType<E extends Number>
class customInteger extends customType<Integer>
class customFloat extends customType<Float>
customInteger と customFloat の両方を受け入れる LinkedList を宣言する
List<customType<Number>> items = new LinkedList<customType<Number>>();
このアプローチは有効ですか?