Yes of course, that's how I ended up implementing it locally. I'll wait a couple of days before storing it in CVS in case there are some dissenters.
Gary > -----Original Message----- > From: Stephen Colebourne [mailto:[EMAIL PROTECTED] > Sent: Friday, November 14, 2003 12:57 > To: Jakarta Commons Developers List > Subject: Re: [lang] new ToStringStyle inner class? > > +1, although IIRC it should be a singleton with a constant. > Stephen > ----- Original Message ----- > From: "Gary Gregory" <[EMAIL PROTECTED]> > To: "'Jakarta Commons Developers List'" <[EMAIL PROTECTED]> > Sent: Friday, November 14, 2003 6:34 PM > Subject: [lang] new ToStringStyle inner class? > > > > Hello, > > > > I find myself using the following pattern which I've placed in a class. > I > am > > wondering if anyone else uses this kind of ToStringStyle and whether or > not > > it could be added as another ToStringStyle inner class. > > > > /** > > * A ToStringStyle which uses a short class name and no hash code. > > */ > > public final class ShortPrefixToStringStyle extends ToStringStyle { > > public ShortPrefixToStringStyle() { > > this.setUseShortClassName(true); > > this.setUseIdentityHashCode(false); > > } > > } > > > > Gary > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
