SerialDate should implement Comparable interface

A discussion forum for the JCommon class library.
Post Reply
Posts: 3
Joined: Tue May 27, 2003 4:31 pm
Location: NYC

SerialDate should implement Comparable interface

Post by 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.

JFreeChart Project Leader
Posts: 11666
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.

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

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



Post Reply