Package com.google.common.collect
Interface MapMakerInternalMap.InternalEntryHelper<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>>
-
- Type Parameters:
K- the type of the key in each entryV- the type of the value in each entryE- the type of theMapMakerInternalMap.InternalEntryentry implementationS- the type of theMapMakerInternalMap.Segmententry implementation
- All Known Implementing Classes:
MapMakerInternalMap.StrongKeyDummyValueEntry.Helper,MapMakerInternalMap.StrongKeyStrongValueEntry.Helper,MapMakerInternalMap.StrongKeyWeakValueEntry.Helper,MapMakerInternalMap.WeakKeyDummyValueEntry.Helper,MapMakerInternalMap.WeakKeyStrongValueEntry.Helper,MapMakerInternalMap.WeakKeyWeakValueEntry.Helper
- Enclosing class:
- MapMakerInternalMap<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>>
static interface MapMakerInternalMap.InternalEntryHelper<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>>A helper object for operating onMapMakerInternalMap.InternalEntryinstances 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, andMapMakerInternalMap.InternalEntryHelperimplementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ecopy(S segment, E entry, E newNext)Returns a freshly created entry, typed at theEtype, for the givensegment, that is a copy of the givenentry.MapMakerInternalMap.StrengthkeyStrength()The strength of the key type in each entry.EnewEntry(S segment, K key, int hash, E next)Returns a freshly created entry, typed at theEtype, for the givensegment.SnewSegment(MapMakerInternalMap<K,V,E,S> map, int initialCapacity, int maxSegmentSize)Returns a freshly created segment, typed at theStype.voidsetValue(S segment, E entry, V value)Sets the value of the givenentryin the givensegmentto be the givenvalueMapMakerInternalMap.StrengthvalueStrength()The strength of the value type in each entry.
-
-
-
Method Detail
-
keyStrength
MapMakerInternalMap.Strength keyStrength()
The strength of the key type in each entry.
-
valueStrength
MapMakerInternalMap.Strength valueStrength()
The strength of the value type in each entry.
-
newSegment
S newSegment(MapMakerInternalMap<K,V,E,S> map, int initialCapacity, int maxSegmentSize)
Returns a freshly created segment, typed at theStype.
-
newEntry
E newEntry(S segment, K key, int hash, E next)
Returns a freshly created entry, typed at theEtype, for the givensegment.
-
copy
E copy(S segment, E entry, E newNext)
Returns a freshly created entry, typed at theEtype, for the givensegment, that is a copy of the givenentry.
-
-