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.

zadoka at 2007-7-8 23:04:48 > top of Java-index,Core,Core APIs...
# 2
I beg Your pardon!What is the sence ofobject1 = table.get("value":object2);?Do You want to have Key in object1? Just make up couple of map wraped in something like BDMap ;) It is realy easy if key and value have different types.
_Dima_a at 2007-7-8 23:04:48 > top of Java-index,Core,Core APIs...