com.netflix.servo.tag
Interface TagList

All Superinterfaces:
java.lang.Iterable<Tag>
All Known Implementing Classes:
BasicTagList, SortedTagList

public interface TagList
extends java.lang.Iterable<Tag>

Represents a list of tags associated with a metric value.


Method Summary
 java.util.Map<java.lang.String,java.lang.String> asMap()
          Returns a map containing a copy of the tags in this list.
 boolean containsKey(java.lang.String key)
          Returns true if this list has a tag with the given key.
 Tag getTag(java.lang.String key)
          Returns the tag matching a given key or null if not match is found.
 java.lang.String getValue(java.lang.String key)
          Returns the value matching a given key or null if not match is found.
 boolean isEmpty()
          Returns true if this list is emtpy.
 java.util.Iterator<Tag> iterator()
          
 int size()
          Returns the number of tags in this list.
 

Method Detail

getTag

Tag getTag(java.lang.String key)
Returns the tag matching a given key or null if not match is found.


getValue

java.lang.String getValue(java.lang.String key)
Returns the value matching a given key or null if not match is found.


containsKey

boolean containsKey(java.lang.String key)
Returns true if this list has a tag with the given key.


isEmpty

boolean isEmpty()
Returns true if this list is emtpy.


size

int size()
Returns the number of tags in this list.


iterator

java.util.Iterator<Tag> iterator()

Specified by:
iterator in interface java.lang.Iterable<Tag>

asMap

java.util.Map<java.lang.String,java.lang.String> asMap()
Returns a map containing a copy of the tags in this list.