I think on Interval itself and I'd expect it to return an interval that has
the earliest start and
latest end, and should never return null.  The other methods give the info
to decide if that is
what you want eg overlaps() and abuts().  I see what you're getting at but I
believe as long as
you say what it does in the Javadoc then that's fine.  I just think you need
a little more utility
to cover common requirements without bloating the interface.
Bone picking though, I'm lovin' this new (to me) tool.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Stephen Colebourne
> Sent: 11 January 2007 22:59
> To: Discussion of the Joda project
> Subject: Re: [Joda-interest] Rounding Instant to a next Partial
>
>
> Would you expect the merge method to be on Interval itself -
> interval.mergeWith(Interval) - or on a utility somewhere -
> Util.merge(Interval,Interval) ?
>
> And what would you expect the method to do if the two intervals don't
> abut each other?
>
> Stephen
>
>
> Mike W wrote:
> > 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
>

-------------------------------------------------------------------------
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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.9/622 - Release Date: 10/01/2007
14:52

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.9/622 - Release Date: 10/01/2007
14:52


-------------------------------------------------------------------------
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

Reply via email to