@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1764") @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. |
Set<Attributes.Key<?>> |
keys()
Returns set of keys stored in container.
|
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 Set<Attributes.Key<?>> keys()
public static Attributes.Builder newBuilder()