Class TagMapImpl

java.lang.Object
io.opencensus.tags.TagContext
io.opencensus.implcore.tags.TagMapImpl

@Immutable public final class TagMapImpl extends TagContext
Implementation of TagContext.
  • Field Details

  • Constructor Details

  • Method Details

    • getTags

      public Map<TagKey,TagValueWithMetadata> getTags()
      Returns the tags of this TagMapImpl.
      Returns:
      the tags.
    • getIterator

      protected Iterator<Tag> getIterator()
      Description copied from class: TagContext
      Returns an iterator over the tags in this TagContext.
      Specified by:
      getIterator in class TagContext
      Returns:
      an iterator over the tags in this TagContext.
    • equals

      public boolean equals(@Nullable Object other)
      Description copied from class: TagContext
      Returns true iff the other object is an instance of TagContext and contains the same key-value pairs. Implementations are free to override this method to provide better performance.
      Overrides:
      equals in class TagContext