Class ReadOnlyArrayMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
io.opentelemetry.api.internal.ReadOnlyArrayMap<K,V>
- All Implemented Interfaces:
Map<K,V>
A read-only view of an array of key-value pairs.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class(package private) final class(package private) class(package private) final classNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractMap
clone, equals, hashCodeMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
array
-
size
private final int size
-
-
Constructor Details
-
ReadOnlyArrayMap
-
-
Method Details
-
wrap
-
size
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
get
-
arrayIndexOfKey
-
key
-
value
-
keySet
-
values
-
entrySet
-
isEmpty
-
put
-
remove
-
putAll
-
clear
-
toString
- Overrides:
toStringin classAbstractMap<K,V>
-