Hi,

Am Freitag, den 08.04.2011, 12:04 +0100 schrieb Alexander Klimetschek: 
> On 08.04.11 08:01, "Carsten Ziegeler" <cziege...@apache.org> wrote:
> >maps rarely have an order regardless of the language.
> 
> A linked map is not an unusual data structure. As Tobi noted, WCM/CMS is a
> prominent use case.

Yes, but: the Map interface itself has no defined order: "Some map
implementations, like the TreeMap class, make specific guarantees as to
their order; others, like the HashMap class, do not."

So, if you encounter a "Map" (not a TreeMap or LinkedHashMap), you must
not depend on any key ordering ...

And most Map implementations used are in fact neither TreeMap nor
LinkedHashMap.

Regards
Felix

Reply via email to