Is getCollection what is wanted, or getList()? I was under the impression that a collection isn't ordered.. And then you would have to cast to a List to pass the collection into anything that expects an ordered list.
Eric > -----Original Message----- > From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 10:02 AM > To: [EMAIL PROTECTED] > Subject: Re: [configuration] Change Commons-Configuration getVector to > getSet? > > > Emmanuel Bourg <[EMAIL PROTECTED]> writes: > > >--------------ms080101070400050103080207 > >Content-Type: text/plain; charset=us-ascii; format=flowed > >Content-Transfer-Encoding: 7bit > > >A Set is too restrictive i think, there are valid reasons > for preserving > >duplicate configuration entries. I would use a Collection or > better, a > >List when the element order matters. > > -1 on using a set > > -1 on deprecating getVector() > > +1 on using a Collection > > +1 on getCollection() > > I have use cases, where I need repeating keys in the sequence that was > put into the configuration file > > - sequence: list org service.<xxxx> keys in turbine.properties > > - repeating keys: list of packages to search for an action/screen > in turbine.properties (here I need the > exact sequence, too) > > So changing this API to use a set without order would damage the > current Turbine code (which might be one of the main users of > commons-configuration). > > Regards > Henning > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH > [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/ > > Java, perl, Solaris, Linux, xSP Consulting, Web Services > freelance consultant -- Jakarta Turbine Development -- hero for hire > > "Dominate!! Dominate!! Eat your young and aggregate! I have > grotty silicon!" > -- AOL CD when played backwards (User Friendly - 200-10-15) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
