Package io.grpc
Class Attributes.Key<T>
- java.lang.Object
-
- io.grpc.Attributes.Key<T>
-
- Type Parameters:
T
- type of the value in the key-value pair
- Enclosing class:
- Attributes
@Immutable public static final class Attributes.Key<T> extends Object
Key for an key-value pair. Uses reference equality.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> Attributes.Key<T>
create(String debugString)
Factory method for creating instances ofAttributes.Key
.static <T> Attributes.Key<T>
of(String debugString)
Deprecated.usecreate(java.lang.String)
instead.String
toString()
-
-
-
Method Detail
-
of
@Deprecated public static <T> Attributes.Key<T> of(String debugString)
Deprecated.usecreate(java.lang.String)
instead. This method will be removed in the future.Factory method for creating instances ofAttributes.Key
.- Type Parameters:
T
- Key type- Parameters:
debugString
- a string used to describe the key, used for debugging.- Returns:
- Key object
-
create
public static <T> Attributes.Key<T> create(String debugString)
Factory method for creating instances ofAttributes.Key
.- Type Parameters:
T
- Key type- Parameters:
debugString
- a string used to describe the key, used for debugging.- Returns:
- Key object
-
-