Is there a way with Java generics to tell the compiler that type T must be of type U? E.g.
public class Whatever<T, U> {
T specific;
U moreGeneral;
}
Now, I want to ensure that T is a subclass of U. Is there a way to specify this?