commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Yu <j...@scioworks.com>
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message