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 entry
V - the type of the value in each entry
E - the type of the MapMakerInternalMap.InternalEntry entry implementation
S - the type of the MapMakerInternalMap.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 Type
    Method
    Description
    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.
    The strength of the key type in each entry.
    newEntry(S segment, K key, int hash, E next)
    Returns a freshly created entry, typed at the E type, for the given segment.
    newSegment(MapMakerInternalMap<K,V,E,S> map, int initialCapacity)
    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
    The strength of the value type in each entry.
  • Method Details

    • keyStrength

      The strength of the key type in each entry.
    • valueStrength

      The strength of the value type in each entry.
    • newSegment

      S newSegment(MapMakerInternalMap<K,V,E,S> map, int initialCapacity)
      Returns a freshly created segment, typed at the S type.
    • newEntry

      E newEntry(S segment, K key, int hash, @CheckForNull E next)
      Returns a freshly created entry, typed at the E type, for the given segment.
    • copy

      E copy(S segment, E entry, @CheckForNull E newNext)
      Returns a freshly created entry, typed at the E type, for the given segment, that is a copy of the given entry.
    • setValue

      void setValue(S segment, E entry, V value)
      Sets the value of the given entry in the given segment to be the given value