Re: [collections] ListOrdereMap vs LinkedMap
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[collections] ListOrdereMap vs LinkedMap
Can someone please explain the difference between the ListOrderedMap and the LinkedMap? I mean: they basically provide the same functionality, right? cheers -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [collections] ListOrdereMap vs LinkedMap
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. Justin -Original Message- From: Torsten Curdt [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 7:21 AM To: [EMAIL PROTECTED] Subject: [collections] ListOrdereMap vs LinkedMap Can someone please explain the difference between the ListOrderedMap and the LinkedMap? I mean: they basically provide the same functionality, right? cheers -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]