Class WeakMap.MapAdapter<K,V>
- java.lang.Object
-
- io.opentelemetry.javaagent.instrumentation.api.WeakMap.MapAdapter<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.opentelemetry.javaagent.instrumentation.api.WeakMap
WeakMap.Implementation, WeakMap.MapAdapter<K,V>, WeakMap.Provider, WeakMap.ValueSupplier<K,V>
-
-
Constructor Summary
Constructors Constructor Description MapAdapter(java.util.Map<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VcomputeIfAbsent(K key, WeakMap.ValueSupplier<? super K,? extends V> supplier)booleancontainsKey(K key)Vget(K key)voidput(K key, V value)voidputIfAbsent(K key, V value)Vremove(K key)intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(K key)
- Specified by:
containsKeyin interfaceWeakMap<K,V>
-
putIfAbsent
public void putIfAbsent(K key, V value)
- Specified by:
putIfAbsentin interfaceWeakMap<K,V>
-
computeIfAbsent
public V computeIfAbsent(K key, WeakMap.ValueSupplier<? super K,? extends V> supplier)
- Specified by:
computeIfAbsentin interfaceWeakMap<K,V>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-