Pierre van Rooden wrote:
> Michiel Meeuwissen wrote:
> >And if I may add, the logically most apt one. E.g. I think that
> >NodeManager.getFields() should have returned a Set or SortedSet, and not a
> >List, because it is logically impossible that a builder has two the same
> >fields.
> 
> Except that the fields returned by getFields() have a certain order 
> (which depends on the passed parameter). Hence List is (currently) more 
> useful, as you would need Comparators to get SortedSet to work properly.

True. So not a very good example. A Set with predictable iteration order
then. There is no seperate interface for that, but there are Set
implementations which garantee that.

Michiel



-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to