static final class MapMakerInternalMap.StrongKeyStrongValueSegment<K,V> extends MapMakerInternalMap.Segment<K,V,MapMakerInternalMap.StrongKeyStrongValueEntry<K,V>,MapMakerInternalMap.StrongKeyStrongValueSegment<K,V>>
MapMakerInternalMap.Segment
for strong keys and strong values.count, map, maxSegmentSize, modCount, readCount, table, threshold
Constructor and Description |
---|
StrongKeyStrongValueSegment(MapMakerInternalMap<K,V,MapMakerInternalMap.StrongKeyStrongValueEntry<K,V>,MapMakerInternalMap.StrongKeyStrongValueSegment<K,V>> map,
int initialCapacity,
int maxSegmentSize) |
Modifier and Type | Method and Description |
---|---|
MapMakerInternalMap.StrongKeyStrongValueEntry<K,V> |
castForTesting(MapMakerInternalMap.InternalEntry<K,V,?> entry)
Unsafe cast of the given entry to
E , the type of the specific MapMakerInternalMap.InternalEntry
implementation type. |
(package private) MapMakerInternalMap.StrongKeyStrongValueSegment<K,V> |
self()
|
clear, clearReferenceQueue, clearValueForTesting, containsKey, containsValue, copyEntry, copyForTesting, drainKeyReferenceQueue, drainValueReferenceQueue, expand, get, getEntry, getFirst, getKeyReferenceQueueForTesting, getLiveEntry, getLiveValue, getLiveValueForTesting, getValueReferenceQueueForTesting, getWeakValueReferenceForTesting, initTable, isCollected, maybeClearReferenceQueues, maybeDrainReferenceQueues, newEntryArray, newEntryForTesting, newWeakValueReferenceForTesting, postReadCleanup, preWriteCleanup, put, reclaimKey, reclaimValue, remove, remove, removeEntryForTesting, removeFromChain, removeFromChainForTesting, removeTableEntryForTesting, replace, replace, runCleanup, runLockedCleanup, setTableEntryForTesting, setValue, setValueForTesting, setWeakValueReferenceForTesting, tryDrainReferenceQueues
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
StrongKeyStrongValueSegment(MapMakerInternalMap<K,V,MapMakerInternalMap.StrongKeyStrongValueEntry<K,V>,MapMakerInternalMap.StrongKeyStrongValueSegment<K,V>> map, int initialCapacity, int maxSegmentSize)
MapMakerInternalMap.StrongKeyStrongValueSegment<K,V> self()
MapMakerInternalMap.Segment
this
up-casted to the specific MapMakerInternalMap.Segment
implementation type S
.
This method exists so that the MapMakerInternalMap.Segment
code can be generic in terms of S
,
the type of the concrete implementation.
self
in class MapMakerInternalMap.Segment<K,V,MapMakerInternalMap.StrongKeyStrongValueEntry<K,V>,MapMakerInternalMap.StrongKeyStrongValueSegment<K,V>>
public MapMakerInternalMap.StrongKeyStrongValueEntry<K,V> castForTesting(MapMakerInternalMap.InternalEntry<K,V,?> entry)
MapMakerInternalMap.Segment
E
, the type of the specific MapMakerInternalMap.InternalEntry
implementation type.
This method is provided as a convenience for tests. Otherwise they'd need to be knowledgable about all the implementation details of our type system trickery.
castForTesting
in class MapMakerInternalMap.Segment<K,V,MapMakerInternalMap.StrongKeyStrongValueEntry<K,V>,MapMakerInternalMap.StrongKeyStrongValueSegment<K,V>>