Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- From: Lew <conrad@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 May 2008 08:14:04 -0400
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
.
- Follow-Ups:
- Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- From: Roedy Green
- Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- References:
- CIAO, How can I sort an ArrayList<K> of Generic Types ?
- From: Giordano
- Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- From: Roedy Green
- Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- From: Lew
- Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- From: Roedy Green
- CIAO, How can I sort an ArrayList<K> of Generic Types ?
- Prev by Date: Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- Next by Date: 'javac is not an internal or external command' this is the error iam getting while compiling a simple program
- Previous by thread: Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- Next by thread: Re: CIAO, How can I sort an ArrayList<K> of Generic Types ?
- Index(es):