commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Yu <>
Subject RE: [collections] MapUtils.swapsKeysValues()
Date Thu, 19 Sep 2002 17:41:10 GMT
Sounds good to me.

At 10:21 pm 19-09-2002, you wrote:
>Perhaps we should just add a comment to MapUtils.swapKeysValues() to the 
>effect of "results are undefined if the source map is not a bijection".
>This gives us some flexiblity in defining a new implementation, either 
>that makes non-bijection swaps meaningful (e.g., "duplicate" keys the 
>destination map point to a *set* of values), or that happens to change the 
>behavior in the non-bijection case.

John Yu 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message