Multi-lateral?
In all the collection framework I haven't seen (maybe I'm blind) any bidirectional (I'd need for now - let alone multi-directional) "table":
object2 = table.get("key":object1);
object1 = table.get("value":object2);
Can anyone help? Is there anything like it somewhere, anywhere? It would be nice something like IdentityHash...: x==y, not x.equals(y).
[378 byte] By [
agerard2a] at [2007-11-26 16:38:03]

# 1
> In all the collection framework I haven't seen (maybe
> I'm blind) any bidirectional (I'd need for now - let
> alone multi-directional) "table":
> object2 = table.get("key":object1);
> object1 = table.get("value":object2);
I am not sure what you are asking, but it seems like you could modify map or use two maps?
> Can anyone help? Is there anything like it somewhere,
> anywhere? It would be nice something like
> IdentityHash...: x==y, not x.equals(y).
Just override the equals method to use == if that is what you want.