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.InternalEntry
entry implementationS
- the type of theMapMakerInternalMap.Segment
entry 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 theE
type, 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 theE
type, for the givensegment
.newSegment
(MapMakerInternalMap<K, V, E, S> map, int initialCapacity) Returns a freshly created segment, typed at theS
type.void
Sets the value of the givenentry
in the givensegment
to be the givenvalue
The 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 theS
type. -
newEntry
Returns a freshly created entry, typed at theE
type, for the givensegment
. -
copy
Returns a freshly created entry, typed at theE
type, for the givensegment
, that is a copy of the givenentry
. -
setValue
Sets the value of the givenentry
in the givensegment
to be the givenvalue
-