BasicTagList implements TagList { public Iterator<Tag> iterator() { return tagMap.iterator(); } BasicTagList(SmallTagMap tagMap);  BasicTagList(Iterable<Tag> entries); Tag getTag(String key); String getValue(String key); boolean containsKey(String key); boolean isEmpty(); int size(); Iterator<Tag> iterator(); Map<String, String> asMap(); BasicTagList copy(TagList tags); BasicTagList copy(String key, String value); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static BasicTagList concat(TagList t1, TagList t2); static BasicTagList concat(TagList t1, Tag... t2); static BasicTagList of(String... tags); static BasicTagList of(Tag... tags); @Deprecated static BasicTagList copyOf(Tag... tags); @Deprecated static BasicTagList copyOf(String... tags); static BasicTagList copyOf(Iterable<String> tags); static BasicTagList copyOf(Map<String, String> tags); static final TagList EMPTY; }
@Test public void testIterator() throws Exception { TagList t1 = BasicTagList.of("foo", "bar"); for (Tag t : t1) { assertEquals(t, new BasicTag("foo", "bar")); } }