Do not agree. A API has to be more extensible than readable. Readability has to be a user aproach to the API. Expect java 1.7 method extention to add this feature to your project at user level.
Use static import of a utility class to do this in current java version. My 2 cents. On Jan 2, 2008 12:35 PM, Jeff Stano <[EMAIL PROTECTED]> wrote: > > I agree with Paul. The only reason to add the methods is to increase > readability. > > > > Paul Field wrote: > I'm for having the methods, although I prefer the > "isOnOrAfter/isOnOrBefore" > naming. > > For me, the reason for having the extra methods is for readability; > '!a.isAfter(b)' is logically equivalent to 'a.isOnOrBefore(b)' but they read > differently and so can make code easier to understand. If the naming of the > method is "isNotAfter" then I don't see the advantage over using the > existing > method with the not operator (!a.isAfter(b)). > > Paul > ------------------ > Paul Field > Research IT > Deutsche Bank > > > [EMAIL PROTECTED] wrote on 01/01/2008 17:01:07: > > > > Count me as one, and FWIW I like 'isNotBefore' and 'isNotAfter' as > method names. > > Chris > > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of > Stephen Colebourne > Sent: Tue 1/1/2008 3:25 AM > To: Discussion of the Joda project > Subject: Re: [Joda-interest] New methods in LocalDate and LocalTime classes > > bart zagers wrote: > > > Hey, > > I have to agree, we have introduced similar methods ourselves, > although we call them isNotBefore and isNotAfter. In fact, we use them > more often than isBefore and isAfter. > > I have long debated the possible usefulness of these methods. Are there > any other supporters of them? > > Stephen > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > --- > > This e-mail may contain confidential and/or privileged information. If you > are > not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and delete this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > strictly > forbidden. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for > additional > EU corporate and regulatory disclosures. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > -- "Nobody knows who i really am I never felt this empty before And if I never need someone to come along Who's gonna comfort me and keep me strong?" -- Marcell Manfrin Barbacena [EMAIL PROTECTED] MSN Messenger: [EMAIL PROTECTED] ICQ UIN: 63671762 Skype: callto://marcell84bruk +55 (83) 8808-8555 (Oi) +55 (62) 8172-5708 (Tim) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest