static final class MapMakerInternalMap.StrongKeyDummyValueSegment<K> extends MapMakerInternalMap.Segment<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>>
MapMakerInternalMap.Segment
for strong keys and MapMaker.Dummy
values.count, map, maxSegmentSize, modCount, readCount, table, threshold
Constructor and Description |
---|
StrongKeyDummyValueSegment(MapMakerInternalMap<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>> map,
int initialCapacity,
int maxSegmentSize) |
Modifier and Type | Method and Description |
---|---|
MapMakerInternalMap.StrongKeyDummyValueEntry<K> |
castForTesting(MapMakerInternalMap.InternalEntry<K,MapMaker.Dummy,?> entry)
Unsafe cast of the given entry to
E , the type of the specific MapMakerInternalMap.InternalEntry
implementation type. |
(package private) MapMakerInternalMap.StrongKeyDummyValueSegment<K> |
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
StrongKeyDummyValueSegment(MapMakerInternalMap<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>> map, int initialCapacity, int maxSegmentSize)
MapMakerInternalMap.StrongKeyDummyValueSegment<K> 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.
public MapMakerInternalMap.StrongKeyDummyValueEntry<K> castForTesting(MapMakerInternalMap.InternalEntry<K,MapMaker.Dummy,?> 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.