Package com.google.common.collect
Class MapMakerInternalMap.StrongKeyDummyValueSegment<K>
- java.lang.Object
-
- java.util.concurrent.locks.ReentrantLock
-
- com.google.common.collect.MapMakerInternalMap.Segment<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>>
-
- com.google.common.collect.MapMakerInternalMap.StrongKeyDummyValueSegment<K>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.concurrent.locks.Lock
- Enclosing class:
- MapMakerInternalMap<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>>
static final class MapMakerInternalMap.StrongKeyDummyValueSegment<K> extends MapMakerInternalMap.Segment<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>>
Concrete implementation ofMapMakerInternalMap.Segment
for strong keys andMapMaker.Dummy
values.
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.MapMakerInternalMap.Segment
count, map, maxSegmentSize, modCount, readCount, table, threshold
-
-
Constructor Summary
Constructors Constructor Description StrongKeyDummyValueSegment(MapMakerInternalMap<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>> map, int initialCapacity, int maxSegmentSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapMakerInternalMap.StrongKeyDummyValueEntry<K>
castForTesting(MapMakerInternalMap.InternalEntry<K,MapMaker.Dummy,?> entry)
Unsafe cast of the given entry toE
, the type of the specificMapMakerInternalMap.InternalEntry
implementation type.(package private) MapMakerInternalMap.StrongKeyDummyValueSegment<K>
self()
-
Methods inherited from class com.google.common.collect.MapMakerInternalMap.Segment
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
-
Methods inherited from class java.util.concurrent.locks.ReentrantLock
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
-
-
-
-
Constructor Detail
-
StrongKeyDummyValueSegment
StrongKeyDummyValueSegment(MapMakerInternalMap<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>> map, int initialCapacity, int maxSegmentSize)
-
-
Method Detail
-
self
MapMakerInternalMap.StrongKeyDummyValueSegment<K> self()
Description copied from class:MapMakerInternalMap.Segment
Returnsthis
up-casted to the specificMapMakerInternalMap.Segment
implementation typeS
.This method exists so that the
MapMakerInternalMap.Segment
code can be generic in terms ofS
, the type of the concrete implementation.- Specified by:
self
in classMapMakerInternalMap.Segment<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>>
-
castForTesting
public MapMakerInternalMap.StrongKeyDummyValueEntry<K> castForTesting(MapMakerInternalMap.InternalEntry<K,MapMaker.Dummy,?> entry)
Description copied from class:MapMakerInternalMap.Segment
Unsafe cast of the given entry toE
, the type of the specificMapMakerInternalMap.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.
-
-