Could anyone please tell what are the important use cases of IdentityHashMap?
IdentityHashMap
One case where you can use IdentityHashMap is if your keys are Class objects. This is about 33% faster than HashMap for gets! It probably uses less memory too.