@Test public void iterator() { final Tags tags = Tags.valueOf(singletonMap("foo", MetricValue.fromStrValue("bar"))); assertFalse(Tags.EMPTY.iterator().hasNext()); assertTrue(tags.iterator().hasNext()); assertThat(tags.iterator().next(), notNullValue()); }
public Iterator<Map.Entry<String, MetricValue>> iterator() { return asMap().entrySet().iterator(); }
Tags implements Comparable<Tags> { public Iterator<Map.Entry<String, MetricValue>> iterator() { return asMap().entrySet().iterator(); } }
Tags implements Comparable<Tags> { public Iterator<Map.Entry<String, MetricValue>> iterator() { return asMap().entrySet().iterator(); } private  Tags(Key tags); }
Tags implements Comparable<Tags> { public Iterator<Map.Entry<String, MetricValue>> iterator() { return asMap().entrySet().iterator(); } private  Tags(Key tags); static Tags valueOf(Stream<Map.Entry<String, MetricValue>> tags); static Tags valueOf(Map<String, MetricValue> tags); Map<String, MetricValue> asMap(); boolean isEmpty(); boolean contains(String tag); Iterator<Map.Entry<String, MetricValue>> iterator(); Optional<MetricValue> getTag(String key); Stream<Map.Entry<String, MetricValue>> stream(); String getTagString(); Tags filter(Set<String> tag_names); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(Tags other); @Override String toString(); }
Tags implements Comparable<Tags> { public Iterator<Map.Entry<String, MetricValue>> iterator() { return asMap().entrySet().iterator(); } private  Tags(Key tags); static Tags valueOf(Stream<Map.Entry<String, MetricValue>> tags); static Tags valueOf(Map<String, MetricValue> tags); Map<String, MetricValue> asMap(); boolean isEmpty(); boolean contains(String tag); Iterator<Map.Entry<String, MetricValue>> iterator(); Optional<MetricValue> getTag(String key); Stream<Map.Entry<String, MetricValue>> stream(); String getTagString(); Tags filter(Set<String> tag_names); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(Tags other); @Override String toString(); static final Tags EMPTY; }