Link Details

Link 916767 thumbnail
User 884233 avatar

By screener
via javarevisited.blogspot.in
Submitted: Feb 01 2013 / 07:37

IdentityHashMap is a special implementation of Map interface which violates Map contract by comparing elements using equals method, instead it uses == operator to compare keys. This behavior makes it perfectly suitable on certain cases where reference equality make sense e.g. keeping object reference during Serialization.
  • 2
  • 0
  • 122
  • 167

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Upvoters (2)



Downvoters (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java