Is it possible to accept only supertypes of the generic Type of a class?
What I m looking for is something like:
class <T extends Object> MyClass {
public <TS super T> void myMethod(TS someObjectSuperToTheClass) {
//do stuff
}
}
I don t really need it anymore (and it s probably not all that useful to begin with) but I m curious if this is at all possible and if not, why.