I think my question is similar to this one: How to implement a Map with multiple keys? but with an important difference. In that question (if my understanding of it is corre
The Table data structure in Guava seems to meet you requirement of refering to a value by a pair of objects.