Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 38503 invoked from network); 2 Oct 2003 23:49:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 23:49:15 -0000 Received: (qmail 86708 invoked by uid 500); 2 Oct 2003 23:48:57 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 86645 invoked by uid 500); 2 Oct 2003 23:48:56 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 86631 invoked from network); 2 Oct 2003 23:48:56 -0000 Received: from unknown (HELO rhenium.btinternet.com) (194.73.73.93) by daedalus.apache.org with SMTP; 2 Oct 2003 23:48:56 -0000 Received: from host81-128-62-210.in-addr.btopenworld.com ([81.128.62.210] helo=oemcomputer) by rhenium.btinternet.com with smtp (Exim 3.22 #23) id 1A5DBv-0002Bo-00 for commons-dev@jakarta.apache.org; Fri, 03 Oct 2003 00:49:03 +0100 Message-ID: <007501c38940$42dd0880$d23e8051@oemcomputer> From: "Stephen Colebourne" To: "Jakarta Commons Developers List" References: Subject: Re: [collections] general problem with decorators Date: Fri, 3 Oct 2003 00:52:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This sounds OK, but what would the method be called? OrderedSet.decorate() OrderedSet.decorateHashSet() ? Stephen ----- Original Message ----- From: "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. :) Especially as the user > knows that HashSet is unordered, so why provide it. > > This may be a unique example, but it seems that we could choose a default > empty map for each one. > > Just a view.. > > Hen > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org