WeakHashMap

GPTKB entity

Statements (51)
Predicate Object
gptkbp:instanceOf gptkb:class
gptkbp:author gptkb:Sun_Microsystems
gptkbp:defaultInitialCapacity 16
gptkbp:defaultLoadFactor 0.75
gptkbp:definedIn gptkb:java.util_package
gptkbp:differenceFromHashMap entries can be garbage collected when keys are weakly reachable
gptkbp:documentation https://docs.oracle.com/javase/8/docs/api/java/util/WeakHashMap.html
gptkbp:extendsTo gptkb:AbstractMap
gptkbp:hasConstructor WeakHashMap()
WeakHashMap(Map<? extends K,? extends V> m)
WeakHashMap(int initialCapacity)
WeakHashMap(int initialCapacity, float loadFactor)
gptkbp:hasMethod clear()
size()
values()
containsKey(Object key)
containsValue(Object value)
entrySet()
get(Object key)
isEmpty()
keySet()
put(K key, V value)
remove(Object key)
https://www.w3.org/2000/01/rdf-schema#label WeakHashMap
gptkbp:implementedIn gptkb:Map_interface
gptkb:Cloneable_interface
gptkb:Serializable_interface
gptkbp:introducedIn gptkb:Java_1.2
gptkbp:isGarbageCollected when key is weakly reachable
gptkbp:isNotSynchronized true
gptkbp:iterationOrder not guaranteed
gptkbp:key any Object
gptkbp:keyReferenceType gptkb:java.lang.ref.WeakReference
gptkbp:notRecommendedFor applications requiring predictable iteration order
gptkbp:partOf gptkb:Java_Collections_Framework
gptkbp:removesEntryAutomatically true
gptkbp:removesEntryOnGC true
gptkbp:removesEntryWhen key is no longer referenced elsewhere
gptkbp:serializationBehavior serializes only entries whose keys are not garbage collected
gptkbp:suitableFor caches, canonicalizing mappings, listeners
gptkbp:supportsNullKey true
gptkbp:supportsNullValue true
gptkbp:syncsWith gptkb:Collections.synchronizedMap
gptkbp:threadSafe false
gptkbp:usedFor caching
memory-sensitive mappings
gptkbp:uses weak references for keys
gptkbp:valueReferenceType strong reference
gptkbp:valueType any Object
gptkbp:bfsParent gptkb:java.util_package
gptkbp:bfsLayer 5