@Test(expected=IllegalArgumentException.class) public void testTaggedNotPairs() { MetricName.EMPTY.tagged("foo"); }
public MetricName tagged(Map<String, String> add) { final Map<String, String> tags = new HashMap<String, String>(add); tags.putAll(this.tags); return new MetricName(key, tags, level); }
MetricName implements Comparable<MetricName> { public MetricName tagged(Map<String, String> add) { final Map<String, String> tags = new HashMap<String, String>(add); tags.putAll(this.tags); return new MetricName(key, tags, level); } }
MetricName implements Comparable<MetricName> { public MetricName tagged(Map<String, String> add) { final Map<String, String> tags = new HashMap<String, String>(add); tags.putAll(this.tags); return new MetricName(key, tags, level); } MetricName();  MetricName(String key);  MetricName(String key, Map<String, String> tags);  MetricName(String key, MetricLevel level);  MetricName(String key, Map<String, String> tags, MetricLevel level); }
MetricName implements Comparable<MetricName> { public MetricName tagged(Map<String, String> add) { final Map<String, String> tags = new HashMap<String, String>(add); tags.putAll(this.tags); return new MetricName(key, tags, level); } MetricName();  MetricName(String key);  MetricName(String key, Map<String, String> tags);  MetricName(String key, MetricLevel level);  MetricName(String key, Map<String, String> tags, MetricLevel level); String getKey(); Map<String, String> getTags(); MetricLevel getMetricLevel(); MetricName level(MetricLevel level); MetricName resolve(String p); MetricName resolve(String p, boolean inheritTags); MetricName tagged(Map<String, String> add); MetricName tagged(String... pairs); static MetricName join(MetricName... parts); static MetricName build(String... parts); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(MetricName o); }
MetricName implements Comparable<MetricName> { public MetricName tagged(Map<String, String> add) { final Map<String, String> tags = new HashMap<String, String>(add); tags.putAll(this.tags); return new MetricName(key, tags, level); } MetricName();  MetricName(String key);  MetricName(String key, Map<String, String> tags);  MetricName(String key, MetricLevel level);  MetricName(String key, Map<String, String> tags, MetricLevel level); String getKey(); Map<String, String> getTags(); MetricLevel getMetricLevel(); MetricName level(MetricLevel level); MetricName resolve(String p); MetricName resolve(String p, boolean inheritTags); MetricName tagged(Map<String, String> add); MetricName tagged(String... pairs); static MetricName join(MetricName... parts); static MetricName build(String... parts); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(MetricName o); static final String SEPARATOR; static final Map<String, String> EMPTY_TAGS; static final MetricName EMPTY; }