I have some code with Map<String, Map<String, String>>
objects, which works (it is instantiated as a HashMap of HashMaps), but I wonder whether there is a better way to represent this data structure in Guava.
I have considered Multimap
, but while there is ListMultimap
and SetMultimap
in Guava, I have found no "MapMultimap".
I have also checked Table, which seems to be more like it, but its name is making me uncomfortable: what I have is definitely not a table but a tree. (There is no overlap between the second keys)
Is there a better Guava alternative or should I stick with Map<String, Map<String, String>>
?