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.

PossibleGenericsSigs.java 960B

123456789101112131415161718192021222324252627282930313233343536
  1. import java.util.*;
  2. public class PossibleGenericsSigs {
  3. public void a(List<String> List_String) {}
  4. public void b(List<Double> List_Double) {}
  5. public void c(List<? extends Number> q_extends_Number) {}
  6. public void d(List<? super Number> q_super_Number) {}
  7. public void e(List<?> List_q) {}
  8. public void f(Map<?,? super Number> Map_q_q_super_Number) {}
  9. <T extends Object & Comparable<? super T>> void r(List<T> l) {}
  10. <T extends Object & Comparable<? super T>> T s(Collection<T> col) {return null;}
  11. static <T extends Comparable<? super Number>> T t(Collection<T> col) {return null;}
  12. static <T extends Comparable<T>> T u(Collection<T> col) {return null;}
  13. <X> X v(Collection<X> x) {return null;}
  14. public void w(List<List<List<List<List<? extends List>>>>> wtf) {}
  15. static <T> void x(List <T> a,List<? extends T> b) {}
  16. <T extends Number> void y(Map<T,? super Number> n) {}
  17. static <T> void z(T[] ts,Collection<T> c) {}
  18. }