SerialDate should implement Comparable interface

A discussion forum for the JCommon class library.

SerialDate should implement Comparable interface

Postby wildepete » Thu Sep 04, 2003 6:36 pm

Just a suggestion that it would be handy if SerialDate implemented the java.util.Comparable interface. No additional methods need to me implemented.

This interface only has one method which SerialDate already has: int compareTo()

This would make it a little easier to use the sorting algorithms that use the comparable interface. As it is, you have to roll your own Comparator, which granted is very easy, but it would be even easier if you didn't have to do this at all.
wildepete
 
Posts: 3
Joined: Tue May 27, 2003 4:31 pm
Location: NYC

Postby david.gilbert » Fri Sep 05, 2003 1:53 pm

Thanks for the suggestion. I've added this for the next release (0.8.7).

Regards,

Dave
david.gilbert
JFreeChart Project Leader
 
Posts: 11655
Joined: Fri Mar 14, 2003 10:29 am


Return to JCommon

Who is online

Users browsing this forum: No registered users and 1 guest