Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 9467 invoked from network); 19 Sep 2003 13:11:41 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 19 Sep 2003 13:11:41 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by warhawk.mpi.com (Switch-2.2.8/Switch-2.2.6) with ESMTP id h8JDAAF17833 for ; Fri, 19 Sep 2003 09:10:10 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [63.244.252.30]) by lightning.mpi.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id h8JDAqjV014221 for ; Fri, 19 Sep 2003 09:11:35 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [collections] New Collection Date: Fri, 19 Sep 2003 09:10:55 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8A6EC28@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [collections] New Collection Thread-Index: AcN+rtNFr1YXhV+yRVW3O8igQa+4qAAAJPmQ From: "Shapira, Yoav" To: "Jakarta Commons Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, Attach it an enhancement request in Bugzilla. And an accompanying tes= t case would be very nice ;) Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Oxley, David [mailto:David.Oxley@workplace-systems.plc.uk] >Sent: Friday, September 19, 2003 8:52 AM >To: 'Jakarta Commons Developers List' >Subject: RE: [collections] New Collection > >Ok. The list won't accept the attachment. If anyone wants to review i= t, I >will email it to you directly. >Dave. > >-----Original Message----- >From: Oxley, David [mailto:David.Oxley@workplace-systems.plc.uk] >Sent: Friday, September 19, 2003 1:29 PM >To: 'Jakarta Commons Developers List' >Subject: RE: [collections] New Collection > >Sorry, my patch went missing. Too big? Anyway here it is gzipped. >Dave >-----Original Message----- >From: Oxley, David [mailto:David.Oxley@workplace-systems.plc.uk] >Sent: Friday, September 19, 2003 1:16 PM >To: 'commons-dev@jakarta.apache.org' >Subject: RE: [collections] New Collection >That's what I meant, cheers. >I found another collection that seems to be a better starting point, >org.apache.commons.collections.DoubleOrderedMap. So far I have made a= >couple >of changes to this class: >1. Changed it to use Comparator's if specified rather than natural >ordering. > >2. Transaction support. >I have attached an initial patch. This is NOT for committing as I hav= en't >finished yet. >I have a few questions: >1. Once I've finished, will the patch be applied (based on what I've >already >done)? >2. Roughly when is the next release of Commons-Collections? >3. There are no decorators specifically for DoubleOrderedMap. Should = I >write >some? >Cheers, >Dave. >-----Original Message----- >From: Arun Thomas >Sent: Fri, 12 Sep 2003 10:19:03 -0700 >To: "Jakarta Commons Developers List" >Subject: [collections] New Collection >Right.... >That seems to be a good interpretation of the original intent.=A0 Sho= uld have >read the original a little better the first time. >-AMT >-----Original Message----- >From: james@carmanconsulting.com [mailto:james@carmanconsulting.com] >Sent: Friday, September 12, 2003 9:13 AM >To: commons-dev@jakarta.apache.org >Subject: Re: [collections] New Collection >The only problem with SequencedHashMap is that its ordering is based = upon >the insertion order, not the values of the objects added to it or som= e >Comparator, such as is needed (at least that's how I interpret "order= ing by >value" from the original requirements). >----- Original Message ----- >From: "Arun Thomas" >To: "Jakarta Commons Developers List" >Sent: Friday, September 12, 2003 12:04 PM >Subject: RE: [collections] New Collection >You might want to take a look at >org.apache.commons.collections.SequencedHashMap which combines, for t= he >most >part, the functions of list and map (insertElementAt()) is not availa= ble - >how does one insert a key, when the value should be at a specific pos= ition? >The transactional support is definitely not there, but this might giv= e you >a >better starting point for what you desire. >-AMT >-----Original Message----- >From: Oxley, David [mailto:David.Oxley@workplace-systems.plc.uk] >Sent: Friday, September 12, 2003 8:07 AM >To: 'commons-dev@jakarta.apache.org' >Subject: [collections] New Collection >Our application has just changed from requiring JDK 1.1 to JDK 1.3 as= a >minimum. As a result we are looking at switching our implementation o= f >using >Hashtable and Vector to using collections. >I am going to write a new collection that gives the functionality we >require >and once I've finished I want to donate it to commons-collections. I = would >like some comments on where to start (especially as I don't yet know = too >much about the standard collections API's). The functionality I requi= re is >this: 1. Keys and values. ala Hashtable. 2. Ordering by value. ala Ve= ctor. >3. Indexing by value. ala Vector's indexOf, elementAt and insertEleme= ntAt. >4. Transactions. i.e. Others won't see changes until commit is called= . >I take it there is no implementation that supplies the above. I was >initially thinking of either encapsulating or overriding TreeMap, but= I >think that would make the indexing part pretty difficult. But now I t= hink I >will just encapsulate or override HashMap. >Any comments would be gratefully received. >Cheers. >Dave. >david.oxley@workplace-systems.plc.uk >_____________________________________________________________________= ___ >This e-mail has been scanned for all viruses by Star Internet. The se= rvice >is powered by MessageLabs. For more information on a proactive anti-v= irus >service working around the clock, around the globe, visit: >http://www.star.net.uk >_____________________________________________________________________= ___ >---------------------------------------------------------------------= >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 >---------------------------------------------------------------------= >To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > >_____________________________________________________________________= ___ >This e-mail has been scanned for all viruses by Star Internet. The >service is powered by MessageLabs. For more information on a proactiv= e >anti-virus service working around the clock, around the globe, visit:= >http://www.star.net.uk >_____________________________________________________________________= ___ This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you.