Package com.google.common.collect
Class MapMakerInternalMap.StrongKeyDummyValueEntry.Helper<K>
java.lang.Object
com.google.common.collect.MapMakerInternalMap.StrongKeyDummyValueEntry.Helper<K>
- All Implemented Interfaces:
MapMakerInternalMap.InternalEntryHelper<K,
MapMaker.Dummy, MapMakerInternalMap.StrongKeyDummyValueEntry<K>, MapMakerInternalMap.StrongKeyDummyValueSegment<K>>
- Enclosing class:
MapMakerInternalMap.StrongKeyDummyValueEntry<K>
static final class MapMakerInternalMap.StrongKeyDummyValueEntry.Helper<K>
extends Object
implements MapMakerInternalMap.InternalEntryHelper<K,MapMaker.Dummy,MapMakerInternalMap.StrongKeyDummyValueEntry<K>,MapMakerInternalMap.StrongKeyDummyValueSegment<K>>
Concrete implementation of
MapMakerInternalMap.InternalEntryHelper
for strong keys and MapMaker.Dummy
values.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MapMakerInternalMap.StrongKeyDummyValueEntry.Helper
<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy
(MapMakerInternalMap.StrongKeyDummyValueSegment<K> segment, MapMakerInternalMap.StrongKeyDummyValueEntry<K> entry, MapMakerInternalMap.StrongKeyDummyValueEntry<K> newNext) Returns a freshly created entry, typed at theE
type, for the givensegment
, that is a copy of the givenentry
.(package private) static <K> MapMakerInternalMap.StrongKeyDummyValueEntry.Helper
<K> instance()
The strength of the key type in each entry.newEntry
(MapMakerInternalMap.StrongKeyDummyValueSegment<K> segment, K key, int hash, MapMakerInternalMap.StrongKeyDummyValueEntry<K> next) Returns a freshly created entry, typed at theE
type, for the givensegment
.newSegment
(MapMakerInternalMap<K, MapMaker.Dummy, MapMakerInternalMap.StrongKeyDummyValueEntry<K>, MapMakerInternalMap.StrongKeyDummyValueSegment<K>> map, int initialCapacity) Returns a freshly created segment, typed at theS
type.void
setValue
(MapMakerInternalMap.StrongKeyDummyValueSegment<K> segment, MapMakerInternalMap.StrongKeyDummyValueEntry<K> entry, MapMaker.Dummy value) Sets the value of the givenentry
in the givensegment
to be the givenvalue
The strength of the value type in each entry.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Helper
Helper()
-
-
Method Details
-
instance
-
keyStrength
Description copied from interface:MapMakerInternalMap.InternalEntryHelper
The strength of the key type in each entry. -
valueStrength
Description copied from interface:MapMakerInternalMap.InternalEntryHelper
The strength of the value type in each entry. -
newSegment
public MapMakerInternalMap.StrongKeyDummyValueSegment<K> newSegment(MapMakerInternalMap<K, MapMaker.Dummy, MapMakerInternalMap.StrongKeyDummyValueEntry<K>, MapMakerInternalMap.StrongKeyDummyValueSegment<K>> map, int initialCapacity) Description copied from interface:MapMakerInternalMap.InternalEntryHelper
Returns a freshly created segment, typed at theS
type. -
copy
public MapMakerInternalMap.StrongKeyDummyValueEntry<K> copy(MapMakerInternalMap.StrongKeyDummyValueSegment<K> segment, MapMakerInternalMap.StrongKeyDummyValueEntry<K> entry, @CheckForNull MapMakerInternalMap.StrongKeyDummyValueEntry<K> newNext) Description copied from interface:MapMakerInternalMap.InternalEntryHelper
Returns a freshly created entry, typed at theE
type, for the givensegment
, that is a copy of the givenentry
. -
setValue
public void setValue(MapMakerInternalMap.StrongKeyDummyValueSegment<K> segment, MapMakerInternalMap.StrongKeyDummyValueEntry<K> entry, MapMaker.Dummy value) Description copied from interface:MapMakerInternalMap.InternalEntryHelper
Sets the value of the givenentry
in the givensegment
to be the givenvalue
-
newEntry
public MapMakerInternalMap.StrongKeyDummyValueEntry<K> newEntry(MapMakerInternalMap.StrongKeyDummyValueSegment<K> segment, K key, int hash, @CheckForNull MapMakerInternalMap.StrongKeyDummyValueEntry<K> next) Description copied from interface:MapMakerInternalMap.InternalEntryHelper
Returns a freshly created entry, typed at theE
type, for the givensegment
.
-