Skip navigation links
JNA API 4.2.1

Class WeakIdentityHashMap

  • All Implemented Interfaces:

    public class WeakIdentityHashMap
    extends Object
    implements Map
    Implements a combination of WeakHashMap and IdentityHashMap. Useful for caches that need to key off of a == comparison instead of a .equals. This class is not a general-purpose Map implementation! While this class implements the Map interface, it intentionally violates Map's general contract, which mandates the use of the equals method when comparing objects. This class is designed for use only in the rare cases wherein reference-equality semantics are required. Note that this implementation is not synchronized.
JNA API 4.2.1

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.