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 on
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.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a freshly created entry, typed at theEtype, for the givensegment, that is a copy of the givenentry.The strength of the key type in each entry.Returns a freshly created entry, typed at theEtype, for the givensegment.newSegment(MapMakerInternalMap<K, V, E, S> map, int initialCapacity) Returns a freshly created segment, typed at theStype.voidSets the value of the givenentryin the givensegmentto be the givenvalueThe strength of the value type in each entry.
-
Method Details
-
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
Returns a freshly created segment, typed at theStype. -
newEntry
Returns a freshly created entry, typed at theEtype, for the givensegment. -
copy
Returns a freshly created entry, typed at theEtype, for the givensegment, that is a copy of the givenentry. -
setValue
Sets the value of the givenentryin the givensegmentto be the givenvalue
-