You can have a Map as key but as you pointed out since a Map is (typically) mutable the key changes.
Read moreAre keys in a map unique?
The keys are unique in all maps . The difference between the various maps implementations concern the possibility of null keys, the order of iteration and concurrency issues.
Read moreAre keys in a map unique?
The keys are unique in all maps . The difference between the various maps implementations concern the possibility of null keys, the order of iteration and concurrency issues.
Read more