commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: ListOrderedMap vs. LinkedHashMap
Date Wed, 21 Jun 2006 20:18:41 GMT
LOM has API extensions that LinkedHashMap can't
duplicate.  Example:  in commons-collections 3.2,
put(int, Object, Object) was added to LOM, which
allows you to insert a mapping at a particular
position.  There are others.

-Matt

--- Marc_Attiyeh@capgroup.com wrote:

> Thanks for the reply.  So from a functionality
> standpoint, they're the
> same?  if i'm developing in 1.5 JDK, then there's no
> difference for me,
> right?
> 
> -Marc
> 
> 
> 
>                                                     
>                   
>              Jörg Schaible                          
>                 
>              <Joerg.Schaible@E                      
>                   
>              lsag-Solutions.co                      
>                    To
>              m>                        "Jakarta
> Commons Users List"    
>                                       
> <commons-user@jakarta.apache.org>
>              06/21/2006 01:03                       
>                    cc
>              PM                                     
>                   
>                                                     
>               Subject
>                                        RE:
> ListOrderedMap vs.          
>              Please respond to         LinkedHashMap
>                   
>              "Jakarta Commons                       
>                   
>                 Users List"                         
>                   
>              <commons-user@jak                      
>                   
>              arta.apache.org>                       
>                   
>                                                     
>                   
>                                                     
>                   
> 
> 
> 
> 
> Marc_Attiyeh@capgroup.com wrote on Wednesday, June
> 21, 2006 7:37 PM:
> 
> > Hello All -
> >
> > Apologies if this has already been covered.  I
> couldn't find
> > an easy way to
> > search through this mailing list's archives.
> >
> > What is the difference between
> > org.apache.commons.collections.map.ListOrderedMap
> (from
> > commons-collections-3.2) and
> > java.util.LinkedHashMap (Java 1.5)?
> >
> > It seems to me that they both implement a map
> while retaining
> > order.  Am I
> > missing something?
> 
> Yep. The implementation from c-c works also for JDKs
> pre 1.4 ...
> 
> - Jörg
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message