-1

public static <T extends Comparable<? super T>> Comparator reverseOrder()

Hi there,

reverseOrder() returns a comparator object of type T, but what does the bold part of the signature mean? "<T extends Comparable<? super T>>"

Many thanks.

Vlad
  • 1
  • 2
  • 5
    just read through all pages https://docs.oracle.com/javase/tutorial/java/generics/index.html – Iłya Bursov Jun 03 '22 at 22:21
  • 1
    See [*Java- The meaning of >?*](https://stackoverflow.com/questions/8537500/java-the-meaning-of-t-extends-comparablet) – Alexander Ivanchenko Jun 04 '22 at 00:22
  • 1
    Does this answer your question? [Why does T extends Comparable super T> include T? Meaning includes Comparable?](https://stackoverflow.com/questions/18163670/why-does-t-extends-comparable-super-t-include-t-meaning-includes-comparable) – Alexander Ivanchenko Jun 04 '22 at 00:23

0 Answers0