@Test public void testJoin() { assertEquals("a, b, c", HtmlDocumentationWriter.join(new String[] { "a", "b", "c" }, ", ")); assertEquals("a, b", HtmlDocumentationWriter.join(new String[] { "a", "b" }, ", ")); assertEquals("a", HtmlDocumentationWriter.join(new String[] { "a" }, ", ")); }
static String join(final Object[] objects, final String delimiter) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < objects.length; i++) { sb.append(objects[i].toString()); if (i < objects.length - 1) { sb.append(delimiter); } } return sb.toString(); }
HtmlDocumentationWriter implements DocumentationWriter { static String join(final Object[] objects, final String delimiter) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < objects.length; i++) { sb.append(objects[i].toString()); if (i < objects.length - 1) { sb.append(delimiter); } } return sb.toString(); } }
HtmlDocumentationWriter implements DocumentationWriter { static String join(final Object[] objects, final String delimiter) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < objects.length; i++) { sb.append(objects[i].toString()); if (i < objects.length - 1) { sb.append(delimiter); } } return sb.toString(); }  }
HtmlDocumentationWriter implements DocumentationWriter { static String join(final Object[] objects, final String delimiter) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < objects.length; i++) { sb.append(objects[i].toString()); if (i < objects.length - 1) { sb.append(delimiter); } } return sb.toString(); }  @Override void write(final ConfigurableComponent configurableComponent, final OutputStream streamToWriteTo,
            final boolean includesAdditionalDocumentation); }
HtmlDocumentationWriter implements DocumentationWriter { static String join(final Object[] objects, final String delimiter) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < objects.length; i++) { sb.append(objects[i].toString()); if (i < objects.length - 1) { sb.append(delimiter); } } return sb.toString(); }  @Override void write(final ConfigurableComponent configurableComponent, final OutputStream streamToWriteTo,
            final boolean includesAdditionalDocumentation); static final String ADDITIONAL_DETAILS_HTML; }