@Test public void testCopy() throws Exception { Map<String, String> map = mapOf("foo", "bar", "dee", "dum"); BasicTagList t1 = BasicTagList.of("foo", "bar"); BasicTagList t2 = BasicTagList.of("foo", "bar2"); assertEquals(t1.copy("foo", "bar2"), t2); assertEquals(t1.copy("dee", "dum").asMap(), map); }
public BasicTagList copy(TagList tags) { return concat(this, tags); }
BasicTagList implements TagList { public BasicTagList copy(TagList tags) { return concat(this, tags); } }
BasicTagList implements TagList { public BasicTagList copy(TagList tags) { return concat(this, tags); } BasicTagList(SmallTagMap tagMap);  BasicTagList(Iterable<Tag> entries); }
BasicTagList implements TagList { public BasicTagList copy(TagList tags) { return concat(this, tags); } 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); }
BasicTagList implements TagList { public BasicTagList copy(TagList tags) { return concat(this, tags); } 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; }