| Package | Description |
|---|---|
| com.ibm.cos.v2.utils |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
AttributeMap.Builder.computeIfAbsent(AttributeMap.Key<T> key,
Supplier<T> valueIfAbsent)
Add a mapping between the provided key and value, if the current value for the key is null.
|
<T> boolean |
AttributeMap.containsKey(AttributeMap.Key<T> typedKey)
Return true if the provided key is configured in this map.
|
<T> T |
AttributeMap.get(AttributeMap.Key<T> key)
Get the value associated with the provided key from this map.
|
<T> T |
AttributeMap.Builder.get(AttributeMap.Key<T> key)
Get the value for the provided key.
|
<T> T |
AttributeMap.LazyValueSource.get(AttributeMap.Key<T> sourceKey) |
<T> AttributeMap.Builder |
AttributeMap.Builder.put(AttributeMap.Key<T> key,
T value)
Add a mapping between the provided key and value.
|
<T> AttributeMap.Builder |
AttributeMap.Builder.putLazy(AttributeMap.Key<T> key,
AttributeMap.LazyValue<T> lazyValue)
Add a mapping between the provided key and value provider.
|
<T> AttributeMap.Builder |
AttributeMap.Builder.putLazyIfAbsent(AttributeMap.Key<T> key,
AttributeMap.LazyValue<T> lazyValue)
Equivalent to
#putLazy(Key, LazyValue), but does not assign the value if there is
already a non-null value assigned for the provided key. |
| Modifier and Type | Method and Description |
|---|---|
AttributeMap.Builder |
AttributeMap.Builder.putAll(Map<? extends AttributeMap.Key<?>,?> attributes)
Adds all the attributes from the map provided.
|
Copyright © 2026. All rights reserved.