@Test(dependsOnMethods = "testAddTags") public void testGetTags() { List<Tag<?>> tags = this.tagged.getTags(); Assert.assertEquals(tags.size(), 2); Assert.assertEquals(tags.get(0).getKey(), JOB_ID_KEY); Assert.assertEquals(tags.get(0).getValue(), JOB_ID); Assert.assertEquals(tags.get(1).getKey(), PROJECT_VERSION_KEY); Assert.assertEquals(tags.get(1).getValue(), PROJECT_VERSION); }
@Override public List<Tag<?>> getTags() { ImmutableList.Builder<Tag<?>> builder = ImmutableList.builder(); for (Map.Entry<String, Object> entry : this.tags.entrySet()) { builder.add(new Tag<Object>(entry.getKey(), entry.getValue())); } return builder.build(); }
Tagged implements Taggable { @Override public List<Tag<?>> getTags() { ImmutableList.Builder<Tag<?>> builder = ImmutableList.builder(); for (Map.Entry<String, Object> entry : this.tags.entrySet()) { builder.add(new Tag<Object>(entry.getKey(), entry.getValue())); } return builder.build(); } }
Tagged implements Taggable { @Override public List<Tag<?>> getTags() { ImmutableList.Builder<Tag<?>> builder = ImmutableList.builder(); for (Map.Entry<String, Object> entry : this.tags.entrySet()) { builder.add(new Tag<Object>(entry.getKey(), entry.getValue())); } return builder.build(); } Tagged();  Tagged(Collection<Tag<?>> tags); }
Tagged implements Taggable { @Override public List<Tag<?>> getTags() { ImmutableList.Builder<Tag<?>> builder = ImmutableList.builder(); for (Map.Entry<String, Object> entry : this.tags.entrySet()) { builder.add(new Tag<Object>(entry.getKey(), entry.getValue())); } return builder.build(); } Tagged();  Tagged(Collection<Tag<?>> tags); @Override void addTag(Tag<?> tag); @Override void addTags(Collection<Tag<?>> tags); @Override List<Tag<?>> getTags(); Map<String, Object> getTagMap(); @Override String metricNamePrefix(boolean includeTagKeys); }
Tagged implements Taggable { @Override public List<Tag<?>> getTags() { ImmutableList.Builder<Tag<?>> builder = ImmutableList.builder(); for (Map.Entry<String, Object> entry : this.tags.entrySet()) { builder.add(new Tag<Object>(entry.getKey(), entry.getValue())); } return builder.build(); } Tagged();  Tagged(Collection<Tag<?>> tags); @Override void addTag(Tag<?> tag); @Override void addTags(Collection<Tag<?>> tags); @Override List<Tag<?>> getTags(); Map<String, Object> getTagMap(); @Override String metricNamePrefix(boolean includeTagKeys);  }