commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <ggreg...@seagullsw.com>
Subject RE: [lang] [patch] Conversion of String to long/double
Date Sat, 06 Sep 2003 17:19:35 GMT

I like toType(fromType). 

fromTypeToType(fromType) seems redundant.

Gary
> -----Original Message-----
> From: Stephen Colebourne [mailto:scolebourne@btopenworld.com]
> Sent: Saturday, September 06, 2003 04:29
> To: Jakarta Commons Developers List
> Subject: Re: [lang] [patch] Conversion of String to long/double
> 
> Do we feel that the stringToInt() naming is good for these methods?
> 
> BooleanUtils uses toBoolean(), which is shorter and fits better with JDK
> standards. Thus
> toInt(String)
> toLong(String)
> etc.
> 
> Opinions?
> 
> Stephen
> 
> ----- Original Message -----
> From: "Phil Steitz" <phil@steitz.com>
> To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
> Sent: Friday, September 05, 2003 5:01 PM
> Subject: Re: [lang] [patch] Conversion of String to long/double
> 
> 
> > Fredrik Westermarck wrote:
> > > Hi!
> > >
> > > Here is the patch that adds stringToLong(String str),
> > > stringToLong(String str, long), stringToDouble(String str) and
> > > stringToDouble(String str, double), testcases are also included.
> > >
> > > I have also improved the testcase for stringToFloat(String).
> >
> > Patch committed. Thanks!
> > Phil
> >
> > >
> > > Hopefully I managed to get the diff right. I had to remove several
> lines
> > > by hand because of differences in the indentation (space vs tabs?). Is
> > > there any document that describes what codestyle commons-lang is
> > > supposed to use?
> > >
> > >
> > > ----------------------------------------------------------------------
> --
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message