SmallTagMap implements Iterable<Tag> { @Override public String toString() { return "SmallTagMap{" + Strings.join(",", iterator()) + "}"; } SmallTagMap(Tag[] tagArray); static Builder builder(); @Override Iterator<Tag> iterator(); Tag get(String key); @Override int hashCode(); @Override String toString(); boolean containsKey(String k); boolean isEmpty(); int size(); @Deprecated Set<Tag> tagSet(); @Override /** {@inheritDoc} */ boolean equals(Object obj); static final int MAX_TAGS; static final int INITIAL_TAG_SIZE; }
@Test public void testToString() { SmallTagMap empty = SmallTagMap.builder().result(); assertEquals(empty.toString(), "SmallTagMap{}"); }