Package com.google.common.collect
Class MapMakerInternalMap.AbstractWeakKeyEntry<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>>
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.WeakReference<K>
-
- com.google.common.collect.MapMakerInternalMap.AbstractWeakKeyEntry<K,V,E>
-
- All Implemented Interfaces:
MapMakerInternalMap.InternalEntry<K,V,E>
- Direct Known Subclasses:
MapMakerInternalMap.WeakKeyDummyValueEntry,MapMakerInternalMap.WeakKeyStrongValueEntry,MapMakerInternalMap.WeakKeyWeakValueEntry
- Enclosing class:
- MapMakerInternalMap<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>>
abstract static class MapMakerInternalMap.AbstractWeakKeyEntry<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>> extends java.lang.ref.WeakReference<K> implements MapMakerInternalMap.InternalEntry<K,V,E>
Base class forMapMakerInternalMap.InternalEntryimplementations for weak keys.
-
-
Constructor Summary
Constructors Constructor Description AbstractWeakKeyEntry(java.lang.ref.ReferenceQueue<K> queue, K key, int hash, E next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHash()Gets the entry's hash.KgetKey()Gets the key for this entry.EgetNext()Gets the next entry in the chain.-
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.MapMakerInternalMap.InternalEntry
getValue
-
-
-
-
Field Detail
-
hash
final int hash
-
next
final E extends MapMakerInternalMap.InternalEntry<K,V,E> next
-
-
Method Detail
-
getKey
public K getKey()
Description copied from interface:MapMakerInternalMap.InternalEntryGets the key for this entry.- Specified by:
getKeyin interfaceMapMakerInternalMap.InternalEntry<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>>
-
getHash
public int getHash()
Description copied from interface:MapMakerInternalMap.InternalEntryGets the entry's hash.- Specified by:
getHashin interfaceMapMakerInternalMap.InternalEntry<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>>
-
getNext
public E getNext()
Description copied from interface:MapMakerInternalMap.InternalEntryGets the next entry in the chain.- Specified by:
getNextin interfaceMapMakerInternalMap.InternalEntry<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>>
-
-