Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 55980 invoked from network); 3 Aug 2006 01:19:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 01:19:24 -0000 Received: (qmail 38705 invoked by uid 500); 3 Aug 2006 01:19:17 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 38575 invoked by uid 500); 3 Aug 2006 01:19:17 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 38564 invoked by uid 99); 3 Aug 2006 01:19:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 18:19:17 -0700 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_SORBS_WEB,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.155 is neither permitted nor denied by domain of smallsmallorgan@gmail.com) Received: from [202.81.18.155] (HELO ausmtp06) (202.81.18.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 18:19:16 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp06 (8.13.6/8.13.6) with ESMTP id k731KPmb7880760 for ; Thu, 3 Aug 2006 11:20:28 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.13.6/8.13.6/NCO v8.1) with ESMTP id k731M7oU225318 for ; Thu, 3 Aug 2006 11:22:12 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k731GgMD022861 for ; Thu, 3 Aug 2006 11:16:43 +1000 Received: from d23m0011.cn.ibm.com ([9.181.32.74]) by d23av02.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k731GcND020870 for ; Thu, 3 Aug 2006 11:16:42 +1000 Received: from [127.0.0.1] ([9.181.106.176]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006080309184033-25487 ; Thu, 3 Aug 2006 09:18:40 +0800 Message-ID: <44D14ED6.307@gmail.com> Date: Thu, 03 Aug 2006 09:18:14 +0800 From: Spark Shen User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: [classlib][luni] Enhance the functionalities provided by BitSet X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 03/08/2006 09:18:40, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 03/08/2006 09:18:42, Serialize complete at 03/08/2006 09:18:42 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi All: IMHO, EnumSet provides a set view of enum types. According to its spec, "Enum sets are represented internally as bit vectors". To avoid to re-invent the wheel, it could be more reasonable to utilize java.util.BitSet class to support the implementation of EnumSet. While current API methods provided by BitSet is not enough, I need to extend the function provided by BitSet. There are 2 options: 1. Implement these extension methods in BitSet directly as package private methods 2. Construct a package private utility class in org.apache.harmony.luni.util package, and implement extensions in this implementation class. I prefer the first option, since there is not many classes need these extension. If no objections, I will adopt the first schema. Best regards. -- Spark Shen China Software Development Lab, IBM --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org