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