You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Koji Sekiguchi <ko...@bluemartini.com> on 2004/08/19 03:18:14 UTC
[collections] LinkedMap and ListOrderedMap
These classes resemble each other, don't they?
Are there any explanation/condition for choosing one of them
whan I use ordered map in my application?
regards,
Koji
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [collections] LinkedMap and ListOrderedMap
Posted by Stephen Colebourne <sc...@btopenworld.com>.
Both are provided to give you a choice of implementation.
IIRC, ListOrderedMap allows you to get a List object of keys, and also
allows you to choose your Map implementation (if you want something
unusual)..
To choose, the best answer is to performance test both in your application.
Bear in mind, the JDK implementation is like LinkedMap, so that might
suggest that is the better choice.
Stephen
----- Original Message -----
From: "Koji Sekiguchi" <ko...@bluemartini.com>
> These classes resemble each other, don't they?
> Are there any explanation/condition for choosing one of them
> whan I use ordered map in my application?
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org