@Immutable public abstract class TagContext extends Object
TagKey to TagValue that can be used to label anything that is
associated with a specific operation.
For example, TagContexts can be used to label stats, log messages, or debugging
information.
| Constructor and Description |
|---|
TagContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Returns true iff the other object is an instance of
TagContext and contains the same
key-value pairs. |
protected abstract Iterator<Tag> |
getIterator()
Returns an iterator over the tags in this
TagContext. |
int |
hashCode() |
String |
toString() |
protected abstract Iterator<Tag> getIterator()
TagContext.TagContext.public boolean equals(@Nullable Object other)
TagContext and contains the same
key-value pairs. Implementations are free to override this method to provide better
performance.