Just less to implement, not neccessary, just that RI is quite long for a top level interface. Here's another one for you: I wanted to combine two intervals yesterday, I just wanted the new one to go from the earliest to the latest. Suprised there wasn't a merge() method anywhere...
-- Mike W > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Stephen > Colebourne > Sent: 09 January 2007 00:21 > To: Discussion of the Joda project > Subject: Re: [Joda-interest] Rounding Instant to a next Partial > > > Mike W wrote: > > How about if a ReadableIntervalable ;-) interface was created? > > public class MyInterval extends BaseInterval implements > ReadableIntervalable > > { > > > > public MyInterval (ReadableInstant start, ReadableInstant end) { > > super(start, end); > > } > > > > public ReadableInterval asReadableInterval() { > > return this; > > } > > } > > I'm sorry but I don't see what this achieves! Why not just use > ReadableInterval? > > Stephen > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
