Re: [collections] general problem with decorators

2003-10-03 Thread Stephen Colebourne
[EMAIL PROTECTED] Sent: Friday, October 03, 2003 7:07 PM Subject: Re: [collections] general problem with decorators I like newInstance. Unlike defaultInstance, it clearly allocates a new object. defaultInstance sounds singleton-y. .T. -Original Message- From: __matthewHawthorne

Re: [collections] general problem with decorators

2003-10-03 Thread __matthewHawthorne
this. Any patch volunteers? Stephen - Original Message - From: Todd Jonker [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED]; Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 7:07 PM Subject: Re: [collections] general problem with decorators

Re: [collections] general problem with decorators

2003-10-03 Thread Phil Steitz
volunteers? Stephen - Original Message - From: Todd Jonker [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED]; Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 7:07 PM Subject: Re: [collections] general problem with decorators I like

Re: [collections] general problem with decorators

2003-10-03 Thread Stephen Colebourne
, October 03, 2003 7:07 PM Subject: Re: [collections] general problem with decorators I like newInstance. Unlike defaultInstance, it clearly allocates a new object. defaultInstance sounds singleton-y. .T. -Original Message- From: __matthewHawthorne [mailto:[EMAIL

Re: [collections] general problem with decorators

2003-10-02 Thread Stephen Colebourne
This sounds OK, but what would the method be called? OrderedSet.decorate() OrderedSet.decorateHashSet() ? Stephen - Original Message - From: Henri Yandell [EMAIL PROTECTED] Basically, the lack of empty constructors with default decoration decisions. Example I'm looking at: I want

Re: [collections] general problem with decorators

2003-10-02 Thread __matthewHawthorne
I would prefer something like: OrderedSet.defaultInstance() or OrderedSet.newInstance() It seems more standard... what do you think? Stephen Colebourne wrote: This sounds OK, but what would the method be called? OrderedSet.decorate() OrderedSet.decorateHashSet() ? Stephen - Original

[collections] general problem with decorators

2003-10-01 Thread Henri Yandell
Basically, the lack of empty constructors with default decoration decisions. Example I'm looking at: I want an OrderedSet. The only way to get this is: OrderedSet.decorate( new HashSet() ) [okay, could do TreeSet etc, also could use MapUtils]. I don't know about you, but this feels odd. :)