-
- All Implemented Interfaces:
-
java.util.Map
public final class CachedHashCodeArrayMap<K, V> extends ArrayMap<K, V>
An ArrayMap that caches its hashCode to support efficient lookup.
-
-
Method Summary
Modifier and Type Method Description voidclear()VsetValueAt(int index, V value)Vput(K key, V value)voidputAll(SimpleArrayMap<out K, out V> simpleArrayMap)VremoveAt(int index)inthashCode()-
Methods inherited from class androidx.collection.ArrayMap
containsAll, entrySet, keySet, putAll, removeAll, retainAll, values -
Methods inherited from class androidx.collection.SimpleArrayMap
clear, containsKey, containsValue, ensureCapacity, equals, get, getOrDefault, hashCode, indexOfKey, isEmpty, keyAt, put, putIfAbsent, remove, remove, removeAt, replace, replace, setValueAt, size, toString, valueAt -
Methods inherited from class java.util.Map
compute, computeIfAbsent, computeIfPresent, copyOf, entry, forEach, merge, of, ofEntries, replaceAll -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
clear
void clear()
-
setValueAt
V setValueAt(int index, V value)
-
put
V put(K key, V value)
-
putAll
void putAll(SimpleArrayMap<out K, out V> simpleArrayMap)
-
removeAt
V removeAt(int index)
-
hashCode
int hashCode()
-
-
-
-