Top.Mail.Ru
December 10th, 2008 - Java developers — LiveJournal
? ?

Java developers

December 10th, 2008
Image

04:58 pm - Imageruakh - What's the difference?

The Java 5 "Generics" tutorial has a section called "Converting Legacy Code to Use Generics". It says that the JDK's Collections class has a method with the following signature:

public static <T extends Object & Comparable<? super T>>
        T max(Collection<? extends T> coll)
Read more...Collapse )

I'd really appreciate something concrete to examine and play around with, such as a code fragment that either wouldn't compile without that part, or would behave sub-ideally somehow (?); but less-concrete explanations are welcome as well.

Thanks in advance!

Powered by LiveJournal.com
Image