For those iof you who know JDK1.3.1 very well:
I am writing a small application where most of the methods involved send/receive lots of parameters. I've decided to encapsulate all of them by sending/receiving HashMap (key-value, dictionary-like structure). So far this has worked for me very well, but now I'm facing a requirement where more than one key must be mapped to the very same value (not copies of this value, nor variables pointing to the same).
Namely, I need a class similar to HashMap that behaves like this:
HashMap hm = new HashMap();
String s1 = hm.get("accountNumber");
String s2 = hm.get("accountNo");
String s3 = hm.get("acctNo");
//Where the three keys are mapped to the very same String value;
Any ideas on how to implement this one?
I hope you guys can help.