I want to create a (recursive) map of maps. That is, the value of the Card type is another Card of the same type as the external card.
For instance:
Map<String, Map<String, Map<String, ... >>>> foo;
Obviously, I need to somehow refer to the "definable type" or something like that. I think I could do:
Map<String, Map<String, ?>>
... and then just @SupressWarnings ("unchecked") passed by the inevitable warnings itself, but is there a better way?
source share