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> |
of(String name)
Factory method for creating instances of
Attributes.Key. |
String |
toString() |
public static <T> Attributes.Key<T> of(String name)
Attributes.Key.T - Key typename - the name of Key. Name collision, won't cause key collision.