T - type of the value in the key-value pair@Immutable public static final class Attributes.Key<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Attributes.Key<T> |
create(String debugString)
Factory method for creating instances of
Attributes.Key. |
static <T> Attributes.Key<T> |
of(String debugString)
Deprecated.
use
create(java.lang.String) instead. This method will be removed in the future. |
String |
toString() |
@Deprecated public static <T> Attributes.Key<T> of(String debugString)
create(java.lang.String) instead. This method will be removed in the future.Attributes.Key.T - Key typedebugString - a string used to describe the key, used for debugging.public static <T> Attributes.Key<T> create(String debugString)
Attributes.Key.T - Key typedebugString - a string used to describe the key, used for debugging.