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 classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Method Summary
Methods inherited from class java.util.AbstractMap
clone, equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
wrap
Returns a read-only view of the givenarray. -
size
public int 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
-
keySet
-
values
-
entrySet
-
isEmpty
public boolean isEmpty() -
put
-
remove
-
putAll
-
clear
public void clear() -
toString
- Overrides:
toStringin classAbstractMap<K,V>
-