Can I have a double-keyed map in Java -



Can I have a double-keyed map in Java -

possible duplicate: how implement map multiple keys?

imagine table columns k1, k2 , d. may need search info keys k1 or k2 or both. there 'standard' solution in java apart creating several maps keeping references?

consider using guava's table.

sample documentation

table<vertex, vertex, double> weightedgraph = hashtable.create(); weightedgraph.put(v1, v2, 4); weightedgraph.put(v1, v3, 20); weightedgraph.put(v2, v3, 5); weightedgraph.row(v1); // returns map mapping v2 4, v3 20 weightedgraph.column(v3); // returns map mapping v1 20, v2 5

java map

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -