I have the following hierarchy :
abstract class customType<E extends Number>
class customInteger extends customType<Integer>
class customFloat extends customType<Float>
to declare a LinkedList which accepts both customInteger and customFloat
List<customType<Number>> items = new LinkedList<customType<Number>>();
is this approach valid ?