Class RegularImmutableMap<K,V>

java.lang.Object
com.google.common.collect.ImmutableMap<K,V>
com.google.common.collect.RegularImmutableMap<K,V>
All Implemented Interfaces:
Serializable, Map<K,V>

final class RegularImmutableMap<K,V> extends ImmutableMap<K,V>
Implementation of ImmutableMap with two or more entries.
  • Field Details

    • EMPTY

      static final ImmutableMap<Object,Object> EMPTY
    • MAX_LOAD_FACTOR

      static final double MAX_LOAD_FACTOR
      Closed addressing tends to perform well even with high load factors. Being conservative here ensures that the table is still likely to be relatively sparse (hence it misses fast) while saving space.
      See Also:
    • HASH_FLOODING_FPP

      static final double HASH_FLOODING_FPP
      Maximum allowed false positive probability of detecting a hash flooding attack given random input.
      See Also:
    • MAX_HASH_BUCKET_LENGTH

      static final int MAX_HASH_BUCKET_LENGTH
      Maximum allowed length of a hash table bucket before falling back to a j.u.HashMap based implementation. Experimentally determined.
      See Also:
    • entries

      final transient Map.Entry<K,V>[] entries
    • table

      @CheckForNull private final transient ImmutableMapEntry<K,V>[] table
    • mask

      private final transient int mask
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

  • Method Details