posted 19 years ago
Hi,
I've tried reading Gilad Bracha's generics tutorial, but I wondered if anyone can recommend something a bit more basic for people like me who are not so bright.
At the minute I'm struggling with the implementing compareTo(T o).
I have a FileModel class in which I wish to implement Comparable. If I declare it as
<CODE>
class FileModel implements Comparable<FileModel>
</CODE>
is it correct to write the method signature as:
<CODE>
public int compareTo(FileModel obj)
</CODE>
Regards,
Ken