public class LinearMap<K,V> extends AbstractMap<K,V>
LinearMap is a simplistic light-weight
Map designed for use when the number of entries is
small. It is backed by a LinearSet.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LinearMap()
Creates a
LinearMap. |
LinearMap(int capacity)
Creates a
LinearMap with specified capacity. |
LinearMap(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<K,V>> |
entrySet() |
V |
put(K key,
V value) |
V |
remove(Object key) |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllCopyright (c) 2006 C. Scott Ananian