Hello,
do you know a possibility to override methods with generic parameters. For example I've go a failure in class B because I use SortedMap instead of Map.
I understand that it is logically not possible to increase the restriction for parameter, you know any method how to do so.
public class A {
public void setMap(Map<Integer, String> map) {
}
}
public class B extends A {
@Override
public void setMap(SortedMap<Integer, String> map) {//failure here: can't override
super.setMap(map);
}
}
Thank you
Andrej