[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    Re: [collections] ListOrdereMap vs LinkedMap
From:       "Stephen Colebourne" <scolebourne () btopenworld ! com>
Date:       2004-03-31 20:15:10
Message-ID: 001a01c4175c$dec06f80$f65b8051 () oemcomputer
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic