Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?



Roedy Green wrote:
On Fri, 23 May 2008 00:44:16 -0400, Lew <conrad@xxxxxxxxxxxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

What do you mean by "implement Comparable in a generic way"?

implement Comparable == implements Comparable
implement Comparable in a generic way == implements Comparable< xxxx >

Aha. So you mean

public class Foo implements Comparable <Foo>
{ ... }

If you leave off the "<Foo>" you get a raw type warning.

--
Lew
.