posted 23 years ago
Peter- True. I made a guess that that I knew what Alok "really meant", based on the possible solution #1 he suggested but didn't like. But I should have said so. Yes, if (A, C) and (C, A) need to be two distinct mappings, you need two Maps (internally at least). If they are intended to be equivalent ((A, C) implies (C, A), and there is no functional difference between a "key" and a "value") then one Map is easiest.
Alok - if you do need to be able to enter (C, A) separately from (A, C) then you can use two Maps, but again, wrap them in a new custom class as I did for the single-Map solution, so the result is easy to use.
[This message has been edited by Jim Yingst (edited March 08, 2001).]
"I'm not back." - Bill Harding, Twister