It is more that iterator order is not defined unless you are a list. So
while we could use Set<Name> (presumably to indicate that we are not going
to have duplicate names) it would fail to capture the idea of an order.
SortedSet would capture the idea of an order (but is otherwise crazy since
the various implementations expect the objects to be compariable etc...)
So my money is on List<Name> and we can document that duplicate names are a
mistake.
Jody

On Tue, Mar 3, 2009 at 1:12 PM, Ben Caradoc-Davies
<ben.caradoc-dav...@csiro.au> wrote:

> Andrea Aime wrote:
> > Set<Names> getProperties gives up namespace support,
> [...]
> > List<Names> would give the best of both worlds it seems?
>
> These are all interfaces. I thought iteration order was specified by the
> implementation? Collection<Name> is iterable and allows implementers to
> choose. See, for example, the use of Collection<Property> in GeoAPI.
>
> --
> Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
> Software Engineer, CSIRO Exploration and Mining
> Australian Resources Research Centre
> 26 Dick Perry Ave, Kensington WA 6151, Australia
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Geotools-devel mailing list
> Geotools-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to