The short answer is to say, this is open source, so look at the source ;-)

The longer answer is that MultiKeyMap uses specially optimised data structures internally to store the key parts. This avoids any hacky (and slow) string concatenation. Given a choice, I would always use a MultiKeyMap for a multiply-keyed map.

Stephen



Mark Shifman wrote:
Hi:

If I am building a map with a compound key composed of say 3 strings , is there any advantage to using MultiKeyMap over a regular Hash(ed)Map
with the key = key1+"_"+key2+"_"+key3;

speed?..elegance??

thanks in advance
mas

---------------------------------------------------------------------
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]

Reply via email to