Java Articles, Tutorials & News

Java IdentityHashMap Class

Java.util package provides an IdentityHashMap class which implements the Map interface with a hash table, using reference-equality in place of object-equality when comparing keys (and values). In other words, in an IdentityHashMap, two keys k1 and k2 are …

Read more »