K - The key type.V - The value type.public final class SimpleMap<K,V> extends AbstractMap<K,V>
Typically more efficient than
Does not support adding or removing entries.
Setting values overwrites the value on the underlying value array.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SimpleMap(K[] keys,
V[] values)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Set<K> |
keySet() |
V |
put(K key,
V value) |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.