java_identityhashmap.put

Java IdentityHashMap.put()

Java IdentityHashMap.put() is a method in the Java IdentityHashMap class that inserts a key-value pair into the map. Unlike regular maps, it uses reference equality for keys, meaning it checks if two objects are the same reference, not just logically equal. Introduced in Java 1997 with Java 1.2, put() in IdentityHashMap is commonly used when you need identity-based key comparisons in a map, rather than value-based comparisons.

https://docs.oracle.com/javase/8/docs/api/java/util/IdentityHashMap.html

java_identityhashmap.put.txt · Last modified: 2025/02/01 06:48 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki