@Immutable public abstract class Tag extends Object
| Modifier and Type | Method and Description |
|---|---|
static Tag |
create(TagKey key,
TagValue value)
Creates a
Tag from the given key and value. |
abstract TagKey |
getKey()
Returns the tag's key.
|
abstract TagValue |
getValue()
Returns the tag's value.
|
public static Tag create(TagKey key, TagValue value)
Tag from the given key and value.key - the tag key.value - the tag value.Tag with the given key and value.public abstract TagKey getKey()
public abstract TagValue getValue()