build a bridge between two keys pairs
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, October 17, 2001 05:23 AM

How should I implement a key1-key2 pair collection where I can retrevie key2 = collection.get(key1) and also key1 = collection.get(key2)?

Re: build a bridge between two keys pairs

Posted By:   John_Zukowski  
Posted On:   Wednesday, October 17, 2001 11:04 PM

You need to maintain two separate hash maps, such that

key2 = collection1.get(key1);
key1 = collection2.get(key2);
About | Sitemap | Contact