incubator-adffaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: Re: Re: making IntegerUtils part of API ?
Date Thu, 26 Oct 2006 01:11:44 GMT
mmm,
not really. the util package for instance has StreamUtils,
ComponentUtils oder LocaleUtils.
But nothing related to numbers...

Anyone else know a better place?
Otherwise, I move the IntegerUtils up.

-M

On 10/18/06, Adam Winer <awiner@gmail.com> wrote:
> Definitely +1 to removing getInteger().  Is there
> anywhere better in the API to move the IntegerUtils
> methods other than having a bonus class?
>
> -- Adam
>
>
>
> On 10/18/06, Matthias Wessendorf <matzew@apache.org> wrote:
> > so, should I remove that one and *refactor* the calls ?
> >
> > so I can make it public, since getString is useful
> >
> > On 10/18/06, Adam Winer <awiner@gmail.com> wrote:
> > > Oops, I meant getString(int) and getString(long).  Those
> > > are useful.  It's getInteger() that is not useful anymore.
> > >
> > > -- Adam
> > >
> > >
> > > On 10/18/06, Matthias Wessendorf <matzew@apache.org> wrote:
> > > > toString() ? no in there.
> > > >
> > > > I use getString(long) for my stuff.
> > > >
> > > > -M
> > > >
> > > > On 10/17/06, Adam Winer <awiner@gmail.com> wrote:
> > > > > I'm partly -1 on this.  We should just be using autoboxing for int
->
> > > > > Integer, which is required to already cache the same object for integers
> > > > > from -128 to 127 inclusive.  The part of IntegerUtils that is still
useful
> > > > > is the cache of toString()'d versions of the integers, but I'm not
> > > > > sure how widely used that is.
> > > > >
> > > > > One thing is for sure - we should do a pass for any instances
> > > > > of "Bali" (an old Oracle code name) to clean that up.
> > > > >
> > > > > -- Adam
> > > > >
> > > > >
> > > > >
> > > > > On 10/17/06, Jeanne Waldman <jeanne.waldman@oracle.com> wrote:
> > > > > >
> > > > > > +1
> > > > > >
> > > > > > Matthias Wessendorf wrote:
> > > > > >
> > > > > > > +1
> > > > > > >
> > > > > > > On 10/17/06, Matthias Wessendorf <matzew@apache.org>
wrote:
> > > > > > >
> > > > > > >> Hey,
> > > > > > >>
> > > > > > >> any one care to make IntegerUtils from trinidad-impl
part of the
> > > > > > >> public API?
> > > > > > >> I like to use it in the api, when working on the validator/converter
> > > > > > >> *overhaul* issue(s).
> > > > > > >>
> > > > > > >> the javadoc says:
> > > > > > >> Class containing various integer utilities. It caches
commonly
> > > > > > >> used Integer objects and String representations of
Integers to avoid
> > > > > > >> expensive object creations.
> > > > > > >>
> > > > > > >> (and also...)
> > > > > > >> IntegerUtils is used throughout most Bali projects,
and clients are
> > > > > > also
> > > > > > >> encouraged to use it for increased performance.
> > > > > > >>
> > > > > > >> :-)
> > > > > > >>
> > > > > > >> Thanks,
> > > > > > >> Matthias
> > > > > > >>
> > > > > > >> --
> > > > > > >> Matthias Wessendorf
> > > > > > >> http://tinyurl.com/fmywh
> > > > > > >>
> > > > > > >> further stuff:
> > > > > > >> blog: http://jroller.com/page/mwessendorf
> > > > > > >> mail: mwessendorf-at-gmail-dot-com
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > > http://tinyurl.com/fmywh
> > > >
> > > > further stuff:
> > > > blog: http://jroller.com/page/mwessendorf
> > > > mail: mwessendorf-at-gmail-dot-com
> > > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > http://tinyurl.com/fmywh
> >
> > further stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
> >
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message