In my current project, I need following type of data structure
Map<String, Map<String,Set<String>>, Set<subscriber>>
As per my knowledge, Java does not support this kind of data structure (Kindly correct me if I am wrong). Or (you can suggest me “how can I achieve this data type of data structure in Java).
Is there any third party library, which supports above mentioned data structure and operations on it?
If you really want maps to act as keys in your data structure, then I think this is what you want:
Note that you MUST override equals and hashCode in the custom Pair class in order for this to work properly.