@ExperimentalApi @Immutable public final class Attributes extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Attributes.Builder |
static class |
Attributes.Key<T> |
| Modifier and Type | Field and Description |
|---|---|
static Attributes |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Attributes.Key<T> key)
Gets the value for the key, or
null if it's not present. |
static Attributes.Builder |
newBuilder()
Create a new builder.
|
String |
toString() |
public static final Attributes EMPTY
@Nullable public <T> T get(Attributes.Key<T> key)
null if it's not present.public static Attributes.Builder newBuilder()