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, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.