K - the type of the key in each entryV - the type of the value in each entryE - the type of the MapMakerInternalMap.InternalEntry entry implementationS - the type of the MapMakerInternalMap.Segment entry implementationstatic interface MapMakerInternalMap.InternalEntryHelper<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>>
MapMakerInternalMap.InternalEntry instances in a type-safe and efficient
manner.
For each of the four combinations of strong/weak key and strong/weak value, there are
corresponding MapMakerInternalMap.InternalEntry, MapMakerInternalMap.Segment, and MapMakerInternalMap.InternalEntryHelper
implementations.
| Modifier and Type | Method and Description |
|---|---|
E |
copy(S segment,
E entry,
E newNext)
Returns a freshly created entry, typed at the
E type, for the given segment,
that is a copy of the given entry. |
MapMakerInternalMap.Strength |
keyStrength()
The strength of the key type in each entry.
|
E |
newEntry(S segment,
K key,
int hash,
E next)
Returns a freshly created entry, typed at the
E type, for the given segment. |
S |
newSegment(MapMakerInternalMap<K,V,E,S> map,
int initialCapacity,
int maxSegmentSize)
Returns a freshly created segment, typed at the
S type. |
void |
setValue(S segment,
E entry,
V value)
Sets the value of the given
entry in the given segment to be the given value |
MapMakerInternalMap.Strength |
valueStrength()
The strength of the value type in each entry.
|
MapMakerInternalMap.Strength keyStrength()
MapMakerInternalMap.Strength valueStrength()
S newSegment(MapMakerInternalMap<K,V,E,S> map, int initialCapacity, int maxSegmentSize)
S type.E newEntry(S segment, K key, int hash, E next)
E type, for the given segment.E copy(S segment, E entry, E newNext)
E type, for the given segment,
that is a copy of the given entry.