@Test public void testConcat() { Assert.assertEquals("A,B,C", StringUtils.concat(",", "A", "B", "C")); Assert.assertEquals("A,C", StringUtils.concat(",", "A", null, "C")); Assert.assertEquals("A", StringUtils.concat(",", "A", null, null)); Assert.assertEquals("", StringUtils.concat(",", null, null, null)); Assert.assertEquals("A, B, C", StringUtils.concat(", ", "A", "B", "C")); Assert.assertEquals("A, C", StringUtils.concat(", ", "A", null, "C")); Assert.assertEquals("A", StringUtils.concat(", ", "A", null, null)); Assert.assertEquals("", StringUtils.concat(", ", null, null, null)); Assert.assertEquals("A, B, C", StringUtils.concat(", ", "A", "B", "C")); Assert.assertEquals("A, C", StringUtils.concat(", ", "A", "", "C")); Assert.assertEquals("A", StringUtils.concat(", ", "A", "", null)); Assert.assertEquals("", StringUtils.concat(", ", null, "", null)); }
public static String concat(final String separator, final Object... objects) { return concat(separator, true, objects); }
StringUtils { public static String concat(final String separator, final Object... objects) { return concat(separator, true, objects); } }
StringUtils { public static String concat(final String separator, final Object... objects) { return concat(separator, true, objects); } private  StringUtils(); }
StringUtils { public static String concat(final String separator, final Object... objects) { return concat(separator, true, objects); } private  StringUtils(); static String concatElementsSeparatedBy(final Object[] strings, final char separator); static String concatElementsSeparatedBy(final Collection<?> strings, final char separator); static String concatElementsSeparatedByComma(final Collection<?> strings); static String concatElementsSeparatedBy(final Collection<?> strings, final String separator); static String concatElementsSeparatedBy(
        final Collection<?> strings,
        final String separator,
        final boolean excludeEmptyValues); static String concat(final String separator, final Object... objects); static String concat(final String separator, final Iterable<?> objects); static String concat(final String separator, final boolean excludeEmptyValues, final Object... objects); static String concat(final String separator, final boolean excludeEmptyValues, final Iterable<?> objects); static String truncateToLength(final String string, final int length); static int countMatches(final String toSearchIn, final char toFind); static int countMatches(final String toSearchIn, final String toFind); static String loop(final String tanga, final int count); }
StringUtils { public static String concat(final String separator, final Object... objects) { return concat(separator, true, objects); } private  StringUtils(); static String concatElementsSeparatedBy(final Object[] strings, final char separator); static String concatElementsSeparatedBy(final Collection<?> strings, final char separator); static String concatElementsSeparatedByComma(final Collection<?> strings); static String concatElementsSeparatedBy(final Collection<?> strings, final String separator); static String concatElementsSeparatedBy(
        final Collection<?> strings,
        final String separator,
        final boolean excludeEmptyValues); static String concat(final String separator, final Object... objects); static String concat(final String separator, final Iterable<?> objects); static String concat(final String separator, final boolean excludeEmptyValues, final Object... objects); static String concat(final String separator, final boolean excludeEmptyValues, final Iterable<?> objects); static String truncateToLength(final String string, final int length); static int countMatches(final String toSearchIn, final char toFind); static int countMatches(final String toSearchIn, final String toFind); static String loop(final String tanga, final int count);  }