Package io.opencensus.implcore.tags
Class TagMapImpl
java.lang.Object
io.opencensus.tags.TagContext
io.opencensus.implcore.tags.TagMapImpl
Implementation of
TagContext
.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TagMapImpl
EmptyTagMapImpl
with no tags.private final Map
<TagKey, TagValueWithMetadata> -
Constructor Summary
ConstructorsConstructorDescriptionTagMapImpl
(Map<? extends TagKey, ? extends TagValueWithMetadata> tags) Creates a newTagMapImpl
with the given tags. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true iff the other object is an instance ofTagContext
and contains the same key-value pairs.Returns an iterator over the tags in thisTagContext
.getTags()
Returns the tags of thisTagMapImpl
.Methods inherited from class io.opencensus.tags.TagContext
hashCode, toString
-
Field Details
-
EMPTY
EmptyTagMapImpl
with no tags. -
tags
-
-
Constructor Details
-
TagMapImpl
Creates a newTagMapImpl
with the given tags.- Parameters:
tags
- the initial tags for thisTagMapImpl
.
-
-
Method Details
-
getTags
Returns the tags of thisTagMapImpl
.- Returns:
- the tags.
-
getIterator
Description copied from class:TagContext
Returns an iterator over the tags in thisTagContext
.- Specified by:
getIterator
in classTagContext
- Returns:
- an iterator over the tags in this
TagContext
.
-
equals
Description copied from class:TagContext
Returns true iff the other object is an instance ofTagContext
and contains the same key-value pairs. Implementations are free to override this method to provide better performance.- Overrides:
equals
in classTagContext
-