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 TagMapImplEmptyTagMapImplwith no tags.private final Map<TagKey, TagValueWithMetadata> -
Constructor Summary
ConstructorsConstructorDescriptionTagMapImpl(Map<? extends TagKey, ? extends TagValueWithMetadata> tags) Creates a newTagMapImplwith the given tags. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true iff the other object is an instance ofTagContextand contains the same key-value pairs.Returns an iterator over the tags in thisTagContext.getTags()Returns the tags of thisTagMapImpl.Methods inherited from class TagContext
hashCode, toString
-
Field Details
-
EMPTY
EmptyTagMapImplwith no tags. -
tags
-
-
Constructor Details
-
TagMapImpl
Creates a newTagMapImplwith 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:TagContextReturns an iterator over the tags in thisTagContext.- Specified by:
getIteratorin classTagContext- Returns:
- an iterator over the tags in this
TagContext.
-
equals
Description copied from class:TagContextReturns true iff the other object is an instance ofTagContextand contains the same key-value pairs. Implementations are free to override this method to provide better performance.- Overrides:
equalsin classTagContext
-