Package io.opentelemetry.api.internal
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 class
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.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
Returns a read-only view of the givenarray
. -
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
get
-
arrayIndexOfKey
-
key
-
value
-
keySet
-
values
-
entrySet
-
isEmpty
public boolean isEmpty() -
put
-
remove
-
putAll
-
clear
public void clear() -
toString
- Overrides:
toString
in classAbstractMap<K,
V>
-