You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Reis Da Rocha, Adelino (NSN - PT/Aveiro)" <ad...@nsn.com> on 2010/03/17 19:28:04 UTC

Serializable alternative to MultiHashMap

 
    Hi, 
 
        I have been using MultiHashMap and according to documentation
this objects has been set as deprecated and it is recomended that we use
MultiValueMap however MultiValueMap is not serializable.
 
        Is there any serializable alternative to MultiValueMap ?
 
        Case not, why do you decided to deprecate MultiHashMap before
providing a Serializable alternative ?
 
        Is it expected MultiValueMap to be serializable in the near
future ?
 
    Regards,
 
        Adelino.
 
 
 

Re: Serializable alternative to MultiHashMap

Posted by Jörg Schaible <jo...@gmx.de>.
Hi Adelino,

Reis Da Rocha, Adelino (NSN - PT/Aveiro) wrote at Wednesday, 17. March 2010 
19:28:

>  
>     Hi,
>  
>         I have been using MultiHashMap and according to documentation
> this objects has been set as deprecated and it is recomended that we use
> MultiValueMap however MultiValueMap is not serializable.
>  
>         Is there any serializable alternative to MultiValueMap ?
>  
>         Case not, why do you decided to deprecate MultiHashMap before
> providing a Serializable alternative ?
>  
>         Is it expected MultiValueMap to be serializable in the near
> future ?

Please open a JIRA issue about this! I am sure it will be handled for the 
next release then.

- Jörg


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


Re: Serializable alternative to MultiHashMap

Posted by Tom <tb...@tbee.org>.
There is nothing wrong with

ArrayList<ArrayList<OMElement>>


You only need to write the correct code for adding and lookup. Often 
things like this are used:

Map<String, ArrayList<OMElement>>


With code like:

if (!map.containsKey(s)) map.put(s, new ArrayList<OMElement>());
map.get(s).add(ome);





On 2010-03-19 23:44, Martin Gainty wrote:
> i had a requirement which called for accumulating a collection of known objects
> so i used parameterised ArrayList e.g.
> ArrayList<OMElement>
>
> I have yet to discover any package which will support Collection(s) of Collection(s)
>
> anyone ?
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>    
>> Subject: Serializable alternative to MultiHashMap
>> Date: Wed, 17 Mar 2010 19:28:04 +0100
>> From: adelino.reis_da_rocha@nsn.com
>> To: user@commons.apache.org
>>
>>
>>      Hi,
>>
>>          I have been using MultiHashMap and according to documentation
>> this objects has been set as deprecated and it is recomended that we use
>> MultiValueMap however MultiValueMap is not serializable.
>>
>>          Is there any serializable alternative to MultiValueMap ?
>>
>>          Case not, why do you decided to deprecate MultiHashMap before
>> providing a Serializable alternative ?
>>
>>          Is it expected MultiValueMap to be serializable in the near
>> future ?
>>
>>      Regards,
>>
>>          Adelino.
>>
>>
>>
>>      
>   		 	   		
> _________________________________________________________________
> Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2
>    


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


RE: Serializable alternative to MultiHashMap

Posted by Martin Gainty <mg...@hotmail.com>.
i had a requirement which called for accumulating a collection of known objects
so i used parameterised ArrayList e.g.
ArrayList<OMElement>

I have yet to discover any package which will support Collection(s) of Collection(s) 

anyone ?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Subject: Serializable alternative to MultiHashMap
> Date: Wed, 17 Mar 2010 19:28:04 +0100
> From: adelino.reis_da_rocha@nsn.com
> To: user@commons.apache.org
> 
>  
>     Hi, 
>  
>         I have been using MultiHashMap and according to documentation
> this objects has been set as deprecated and it is recomended that we use
> MultiValueMap however MultiValueMap is not serializable.
>  
>         Is there any serializable alternative to MultiValueMap ?
>  
>         Case not, why do you decided to deprecate MultiHashMap before
> providing a Serializable alternative ?
>  
>         Is it expected MultiValueMap to be serializable in the near
> future ?
>  
>     Regards,
>  
>         Adelino.
>  
>  
>  
 		 	   		  
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2