commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <>
Subject [lang] MutableXxx Was: [Jakarta Commons Wiki] New: MutableNumbers
Date Thu, 03 Jun 2004 14:37:12 GMT

Thanks Matt,

1 lang.mutable gets my vote.

2 MutableXxx gets my vote as a naming scheme.

3 I'm in favour of MutableXxx having instance links to XxxUtils to make
them more powerful [and delegating calls to all Xxx methods]. This does
make it a large lump of work though.

4 Do we need MutableInteger, MutableFloat etc, or can we just normalize on
the main ones?

MutableLong [which would handle ints, shorts]
MutableDouble [which would handle float]
MutableByte [assuming it is different to MutableLong]


On Thu, 3 Jun 2004 wrote:

>    Date: 2004-06-03T07:08:24
>    Editor: <>
>    Wiki: Jakarta Commons Wiki
>    Page: MutableNumbers
>    URL:
>    adding info on mutable numbers
> New Page:
> There have been a few threads about mutable numbers and I'll try to summarize the ideas.
> '''1) What package/project should these classes go in?'''
> My initial thought was lang.math, but if we create MutableByte, MutableString, or others
> non-numeric types, this isn't a good fit.  lang.mutable may be a better fit.
> '''2) What type of naming scheme should we use?'''
> MutableInteger vs. MInteger vs. IntegerHolder vs. ?
> '''3) Comparision between my (matth) initial implementation vs. Geronimos'''
> I can't find the Mutable classes in Geronimo anymore.  Perhaps they were removed?
> One of the primary differences I noted was that the Geromino classes containeed additional
> methods such add add(int), subtract(int), and things like that.  I find this similar
> Henri's suggestion that MutableString contain StringUtils-like methods (split(), capitalize(),
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message