Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Recursive Generics in Maps

843793Oct 13 2005 — edited Oct 19 2005
I would like to create a Map where the key is of some type (i.e. String) and the value is a map with the same typing.

Basically this is what I want:
Map<String, Map<String, Map<String, Map<String, ...>>>>
Is this possible to do? If so, how do I do it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2005
Added on Oct 13 2005
7 comments
285 views