You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Cage.java 184B

123456789
  1. class LionCage extends Cage<Lion> {}
  2. class Lion extends Animal<LionCage> {}
  3. class Animal<T> { }
  4. class Bar {}
  5. public class Cage<T extends Animal<? extends Cage<T>>> extends Bar { }