Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 836 invoked from network); 2 Oct 2003 02:47:23 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 02:47:23 -0000 Received: (qmail 73003 invoked by uid 500); 2 Oct 2003 02:47:01 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 72931 invoked by uid 500); 2 Oct 2003 02:47:01 -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 72918 invoked from network); 2 Oct 2003 02:47:00 -0000 Received: from unknown (HELO umbongo.flamefew.net) (64.253.103.114) by daedalus.apache.org with SMTP; 2 Oct 2003 02:47:00 -0000 Received: by umbongo.flamefew.net (Postfix on Linux (i386), from userid 500) id 84116C76; Wed, 1 Oct 2003 22:47:01 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by umbongo.flamefew.net (Postfix on Linux (i386)) with ESMTP id 7C95FC70 for ; Wed, 1 Oct 2003 22:47:01 -0400 (EDT) Date: Wed, 1 Oct 2003 22:47:01 -0400 (EDT) From: Henri Yandell X-X-Sender: hen@umbongo.flamefew.net To: Jakarta Commons Developers List Subject: [collections] general problem with decorators Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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