commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [collections] ListOrdereMap vs LinkedMap
Date Wed, 31 Mar 2004 20:15:10 GMT
They are two choices to achieve the same effect. ListOrdredMap probably uses
more memory, but you should test both memory and performance in your own
application.

Stephen

----- Original Message -----
From: "Torsten Curdt" <tcurdt@vafer.org>
> Edelson, Justin wrote:
> > ListOrderedMap cannot be instantiated directly. Per the Javadocs, it's a
> > decorator, not a Map implementation. You get an instance of
> > ListOrderedMap by passing an existing Map to
> > ListOrderedMap.decorate(Map).
> >
> > LinkedMap, however, can be instantiated directly and has similar
> > constructors to java.util.HashMap.
> >
> > Hope this helps.
>
> Thanks, Justin, that's exactly the only differnce I can see.
> (plus the implementation of the Serializable interface)
>
> cheers
> --
> Torsten
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message