Re: [lang] MutableNumber (WAS: RE: [lang] Mutable type casts and MutableNumber)

2004-10-02 Thread Stephen Colebourne
AbstractNumber if you prefer to keep MutableNumber as an interface). Gary > -Original Message- > From: Stephen Colebourne [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 16:15 > To: Jakarta Commons Developers List > Subject: Re: [lang] Mutable t

RE: [lang] MutableNumber (WAS: RE: [lang] Mutable type casts and MutableNumber)

2004-10-01 Thread Gary Gregory
[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 16:15 > To: Jakarta Commons Developers List > Subject: Re: [lang] Mutable type casts and MutableNumber > > From: "matthew.hawthorne" <[EMAIL PROTECTED]> > > Gary Gregory wrote: > > > 1st minor: ther

Re: [lang] Mutable type casts and MutableNumber

2004-09-30 Thread Stephen Colebourne
From: "matthew.hawthorne" <[EMAIL PROTECTED]> > Gary Gregory wrote: > > 1st minor: there are a bunch of unnecessary type-casts, I'd like to > > remove those if no one objects. +1 > > 2nd: There is no MutableNumber class. It seems to me that the mutable > > number classes are paralle to java.lang.N

Re: [lang] Mutable type casts and MutableNumber

2004-09-30 Thread matthew.hawthorne
Gary Gregory wrote: 1st minor: there are a bunch of unnecessary type-casts, I'd like to remove those if no one objects. For example, in MutableInteger, this cast to long is superfluous: public long longValue() { return (long) value; } That sounds right, perhaps these casts were just

[lang] Mutable type casts and MutableNumber

2004-09-30 Thread Gary Gregory
Hello, I do like the new mutable classes; I can use them now in our project as a matter of fact. Two issues, 1st minor: there are a bunch of unnecessary type-casts, I'd like to remove those if no one objects. For example, in MutableInteger, this cast to long is superfluous: public long lon