How to replace generic type with concrete type when inheriting?
Hi,
Let's assume we have a generified container class
publicclass Container<T>{
public T getElement(){...}
publicvoid setElement(T element){...}
}
Now there is the need for a new specialized container class which inherits from the generic one. For this specialized class I would like to omit the generics completely for its users - something like:
publicclass SpecializedContainer<"T=SpecializedType">extends Container<T>{
public SpecializedElement getElement(){...}
publicvoid setElement(SpecializedElement element){...}
}
That means, I should be able to use that class as follows:
SpecializedContainer c =new SpecializedContainer();
SpecializedElement e = c.getElement();
Any ideas if/how this is possible?
Thanks, Hans

