Class CachedHashCodeArrayMap<K,V>

java.lang.Object
androidx.collection.SimpleArrayMap<K,V>
androidx.collection.ArrayMap<K,V>
com.bumptech.glide.util.CachedHashCodeArrayMap<K,V>
Type Parameters:
K - the key type.
V - the value type.
All Implemented Interfaces:
Map<K,V>

public final class CachedHashCodeArrayMap<K,V> extends androidx.collection.ArrayMap<K,V>
An ArrayMap that caches its hashCode to support efficient lookup.
  • Constructor Details

    • CachedHashCodeArrayMap

      public CachedHashCodeArrayMap()
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface Map<K,V>
      Overrides:
      clear in class androidx.collection.SimpleArrayMap<K,V>
    • setValueAt

      public V setValueAt(int index, V value)
      Overrides:
      setValueAt in class androidx.collection.SimpleArrayMap<K,V>
    • put

      public V put(K key, V value)
      Specified by:
      put in interface Map<K,V>
      Overrides:
      put in class androidx.collection.SimpleArrayMap<K,V>
    • putAll

      public void putAll(androidx.collection.SimpleArrayMap<? extends K,? extends V> simpleArrayMap)
      Overrides:
      putAll in class androidx.collection.SimpleArrayMap<K,V>
    • removeAt

      public V removeAt(int index)
      Overrides:
      removeAt in class androidx.collection.SimpleArrayMap<K,V>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<K,V>
      Overrides:
      hashCode in class androidx.collection.SimpleArrayMap<K,V>