Package org.apache.cxf.common.util
Class WeakIdentityHashMap<K,V>
- java.lang.Object
- 
- org.apache.cxf.common.util.WeakIdentityHashMap<K,V>
 
- 
- All Implemented Interfaces:
- Map<K,V>
 
 public class WeakIdentityHashMap<K,V> extends Object implements Map<K,V> 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.
- 
- 
Constructor SummaryConstructors Constructor Description WeakIdentityHashMap()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()booleanequals(Object o)Vget(Object key)inthashCode()booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> t)Vremove(Object key)intsize()Collection<V>values()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
 
- 
 
- 
- 
- 
Method Detail- 
containsKeypublic boolean containsKey(Object key) - Specified by:
- containsKeyin interface- Map<K,V>
 
 - 
containsValuepublic boolean containsValue(Object value) - Specified by:
- containsValuein interface- Map<K,V>
 
 - 
equalspublic boolean equals(Object o) 
 - 
hashCodepublic int hashCode() 
 
- 
 
-