commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julien.bu...@achatpro.com
Subject Réf. : Re: [collection] MultiHashMap class improvements
Date Mon, 14 Oct 2002 08:12:32 GMT


Hi.(See attached file: MultiHashMap.java)

I have removed the two methods of interface and updated the clone() method.

Julien



                                                                                         
                          
                    "Stephen                                                             
                          
                    Colebourne"                Pour :  "Jakarta Commons Developers List" 
                          
                    <scolebourne@btopen        <commons-dev@jakarta.apache.org> 
                                   
                    world.com>                 cc :                                   
                             
                                               Objet :      Re: [collection] MultiHashMap
class improvements        
                    14/10/02 00:44                                                       
                          
                    Veuillez répondre à                                                
                            
                    "Jakarta Commons                                                     
                          
                    Developers List"                                                     
                          
                                                                                         
                          
                                                                                         
                          




I have taken a look at the patch. Unfortunately I can't use it at present
because it would involve changing the MultiMap interface. Once released, we
generally do not change interfaces.

Stephen

----- Original Message -----
From: <julien.buret@achatpro.com>
To: <commons-dev@jakarta.apache.org>
Sent: Wednesday, October 09, 2002 1:43 PM
Subject: [collection] MultiHashMap class improvements


> Hi.
>
> I use MultiHashMap class.  I added a few improvements :
>
> 1) fix bug  9573 : http://issues.apache.org/bugzilla/show_bug.cgi?id=9573
> MultiHashMap.values()  is backed by map now .
>  (update method values() + add interns class Values & ValueIterator)
>
> 2) fix another bug : ArrayList can be put in MultiHashMap as value now
>  (update method put(Object,Object) and add method
> readObject(ObjectInputStream))
>
> 3)update method clone() : each Collection container is cloned now.
>
> 4)add two useful methods in MultiMap & MultiHashMap class:
>
> public boolean contains( Object key, Object item )
> public void putAll( Object key, Collection collection )
>
> 5) add a method protected Collection getNewInstanceContainer( int size )
> So it will be possible later to create a AbstractMultiMap?
>
> JUnit tests are OK,
>
> Any comments are welcome
>
> JB
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>
>



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




Mime
View raw message