public final class SimpleMap extends AbstractMap<String,Object>
Map where the keys and values are simple String[] and
Object[] arrays.
Typically more efficient than HashMaps for small maps (e.g. <10 entries).
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(String[] keys,
Object[] values)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
Set<String> |
keySet() |
Object |
put(String key,
Object 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 © 2018 Apache. All rights reserved.