K - The key type.V - The value type.public final class AMap<K,V> extends LinkedHashMap<K,V>
LinkedHashMap with a convenience append(Object,Object) method.
Primarily used for testing purposes for quickly creating populated maps.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AMap() |
| Modifier and Type | Method and Description |
|---|---|
AMap<K,V> |
append(K k,
V v)
Adds an entry to this map.
|
static <K,V> AMap<K,V> |
create()
Creates an empty map.
|
static <K,V> AMap<K,V> |
create(K key,
V value)
Creates a map with one entry.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.