I'm documenting some code, and I have a private HashMap. I'd like to specify information about what is expected from the key and value. Right now I have:
/**
* HashMap where key=word, value=part of speech
*/
private HashMap<String, String> dictionary;
However, this seems hard to read, and also like it won't work well when I have something more complex like
HashMap<String, HashMap<String, String>>
What are best/common practices for documenting maps?