public static final class AttributeMap.Builder extends Object implements CopyableBuilder<AttributeMap.Builder,AttributeMap>
| Modifier and Type | Method and Description |
|---|---|
AttributeMap |
build()
An immutable object that is created from the
properties that have been set on the builder.
|
<T> T |
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.
|
AttributeMap.Builder |
copy()
A shallow copy of this object created by building an immutable T and then transforming it back to a builder.
|
<T> T |
get(AttributeMap.Key<T> key)
Get the value for the provided key.
|
<T> AttributeMap.Builder |
put(AttributeMap.Key<T> key,
T value)
Add a mapping between the provided key and value.
|
AttributeMap.Builder |
putAll(AttributeMap attributes)
Put all of the attributes from the provided map into this one.
|
AttributeMap.Builder |
putAll(Map<? extends AttributeMap.Key<?>,?> attributes)
Adds all the attributes from the map provided.
|
<T> AttributeMap.Builder |
putLazy(AttributeMap.Key<T> key,
AttributeMap.LazyValue<T> lazyValue)
Add a mapping between the provided key and value provider.
|
<T> 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyMutationpublic <T> T get(AttributeMap.Key<T> key)
public <T> T computeIfAbsent(AttributeMap.Key<T> key, Supplier<T> valueIfAbsent)
public <T> AttributeMap.Builder put(AttributeMap.Key<T> key, T value)
public <T> AttributeMap.Builder putLazy(AttributeMap.Key<T> key, AttributeMap.LazyValue<T> lazyValue)
public <T> AttributeMap.Builder putLazyIfAbsent(AttributeMap.Key<T> key, AttributeMap.LazyValue<T> lazyValue)
#putLazy(Key, LazyValue), but does not assign the value if there is
already a non-null value assigned for the provided key.public AttributeMap.Builder putAll(Map<? extends AttributeMap.Key<?>,?> attributes)
public AttributeMap.Builder putAll(AttributeMap attributes)
public AttributeMap build()
SdkBuilderbuild in interface Buildablebuild in interface SdkBuilder<AttributeMap.Builder,AttributeMap>public AttributeMap.Builder copy()
CopyableBuildercopy in interface CopyableBuilder<AttributeMap.Builder,AttributeMap>Copyright © 2026. All rights reserved.