Package com.linkedin.alpini.base.misc
Class ArrayMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.linkedin.alpini.base.misc.ArrayMap<K,V>
-
- Type Parameters:
K
- Key typeV
- Value type
- All Implemented Interfaces:
java.util.Map<K,V>
@NotThreadSafe public class ArrayMap<K,V> extends java.util.AbstractMap<K,V>
SimpleArrayList
backedMap
implementation which uses simple linear scans of the list for searching for matching keys. Ideal for very small maps where the cost of hash computation may be considered excessive and Object.equals(Object) of the key is cheap. Permits null as a key value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
keyEquals(K a, K b)
V
put(K key, V value)
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
-
-