InternalEntry entry implementation used internally
Segment entry implementation used internally
MapMaker.
This implementation is heavily derived from revision 1.96 of ConcurrentHashMap.java.
ConcurrentHashMap)
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | |
| pack-priv abstract static class | MapMakerInternalMap.AbstractStrongKeyEntry<K, V, E extends MapMakerInternalMap.
Base class for |
| pack-priv abstract static class | MapMakerInternalMap.AbstractWeakKeyEntry<K, V, E extends MapMakerInternalMap.
Base class for |
| pack-priv static class | |
| pack-priv static class | MapMakerInternalMap.DummyInternalEntry
A dummy implementation of |
| pack-priv class | |
| pack-priv class | |
| pack-priv abstract class | |
| pack-priv static interface | MapMakerInternalMap.InternalEntry<K, V, E extends MapMakerInternalMap.
An entry in a hash table of a |
| pack-priv static interface | MapMakerInternalMap.InternalEntryHelper<
the type of the key in each entry K, the type of the value in each entry V, the type of the E extends MapMakerInternalMap.InternalEntry entry implementationthe type of the S extends MapMakerInternalMap.Segment entry implementationA helper object for operating on |
| pack-priv class | |
| pack-priv class | |
| private abstract static class | |
| pack-priv abstract static class | MapMakerInternalMap.Segment<K, V, E extends MapMakerInternalMap.
Segments are specialized versions of hash tables. |
| private static class | |
| pack-priv static enum | |
| pack-priv static class | MapMakerInternalMap.StrongKeyDummyValueEntry<K>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.StrongKeyDummyValueSegment<K>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.StrongKeyStrongValueEntry<K, V>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.StrongKeyStrongValueSegment<K, V>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.StrongKeyWeakValueEntry<K, V>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.StrongKeyWeakValueSegment<K, V>
Concrete implementation of |
| pack-priv static interface | MapMakerInternalMap.StrongValueEntry<K, V, E extends MapMakerInternalMap.
Marker interface for |
| pack-priv class | |
| pack-priv class | |
| pack-priv static class | MapMakerInternalMap.WeakKeyDummyValueEntry<K>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.WeakKeyDummyValueSegment<K>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.WeakKeyStrongValueEntry<K, V>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.WeakKeyStrongValueSegment<K, V>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.WeakKeyWeakValueEntry<K, V>
Concrete implementation of |
| pack-priv static class | MapMakerInternalMap.WeakKeyWeakValueSegment<K, V>
Concrete implementation of |
| pack-priv static interface | MapMakerInternalMap.WeakValueEntry<K, V, E extends MapMakerInternalMap.
Marker interface for |
| pack-priv static interface | MapMakerInternalMap.WeakValueReference<K, V, E extends MapMakerInternalMap.
A weakly referenced value that also has a reference to its containing entry. |
| pack-priv static class | MapMakerInternalMap.WeakValueReferenceImpl<K, V, E extends MapMakerInternalMap.
Concrete implementation of |
| pack-priv class | MapMakerInternalMap.WriteThroughEntry
Custom Entry class used by EntryIterator.next(), that relays setValue changes to the underlying map. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | concurrencyLevel
The concurrency level. |
| pack-priv static final int | CONTAINS_VALUE_RETRIES
Number of (unsynchronized) retries in the containsValue method. |
| pack-priv static final int | DRAIN_MAX
Maximum number of entries to be drained in a single cleanup run. |
| pack-priv static final int | DRAIN_THRESHOLD
Number of cache access operations that can be buffered per segment before the cache's recency ordering information is updated. |
| pack-priv final transient MapMakerInternalMap. | entryHelper
Strategy for handling entries and segments in a type-safe and efficient manner. |
| pack-priv transient Set | |
| pack-priv final Equivalence | keyEquivalence
Strategy for comparing keys. |
| pack-priv transient Set | |
| pack-priv static final int | MAX_SEGMENTS
The maximum number of segments to allow; used to bound constructor arguments. |
| pack-priv static final int | MAXIMUM_CAPACITY
The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments. |
| pack-priv final transient int | segmentMask
Mask value for indexing into segments. |
| pack-priv final transient MapMakerInternalMap. | segments
The segments, each of which is a specialized hash table. |
| pack-priv final transient int | segmentShift
Shift value for indexing within segments. |
| private static final long | |
| pack-priv static final MapMakerInternalMap. | UNSET_WEAK_VALUE_REFERENCE
A singleton |
| pack-priv transient Collection |
| Access | Constructor and Description |
|---|---|
| private | MapMakerInternalMap(MapMaker builder, MapMakerInternalMap.
Creates a new, empty map with the specified strategy, initial capacity and concurrency level. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Overrides java. Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Overrides java. Implements java. true if this map maps one or more keys to the
specified value.
|
| pack-priv E | |
| pack-priv static <K, V> MapMakerInternalMap | |
| pack-priv MapMakerInternalMap. | |
| pack-priv static <K> MapMakerInternalMap | createWithDummyValues(MapMaker builder)
Returns a fresh |
| public Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| public V | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| pack-priv E | |
| pack-priv V | |
| pack-priv int | |
| public boolean | isEmpty()
Overrides java. Implements java. true if this map contains no key-value mappings.
|
| pack-priv boolean | isLiveForTesting(MapMakerInternalMap.
This method is a convenience for testing. |
| public Set | keySet()
Overrides java. Implements java. Set view of the keys contained in this map.
|
| pack-priv MapMakerInternalMap. | |
| pack-priv final MapMakerInternalMap. | |
| public V | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides java. Implements java. |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map m)Overrides java. Implements java. |
| public V | putIfAbsent(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides default java. Implements java. |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static int | rehash(int
hash code h)Applies a supplemental hash function to a given hash code, which defends against poor quality hash functions. |
| public V | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. |
| public boolean | remove(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key value)Overrides default java. Implements java. |
| public boolean | replace(K
key with which the specified value is associated key, V value expected to be associated with the specified key oldValue, V value to be associated with the specified key newValue)Overrides default java. Implements java. |
| public V | replace(K
key with which the specified value is associated key, V value to be associated with the specified key value)Overrides default java. Implements java. |
| pack-priv MapMakerInternalMap. | Returns: the segmentthe hash code for the key hash)Returns the segment that should be used for a key with the given hash. |
| public int | size()
Overrides java. Implements java. |
| private static <E> ArrayList | |
| pack-priv static <K, V, E extends MapMakerInternalMap. | |
| pack-priv Equivalence | |
| public Collection | values()
Overrides java. Implements java. Collection view of the values contained in this map.
|
| pack-priv MapMakerInternalMap. | |
| pack-priv Object |