diff --git a/src/fr/devinsy/util/strings/StringListUtils.java b/src/fr/devinsy/util/strings/StringListUtils.java index 2c97490..a53461e 100644 --- a/src/fr/devinsy/util/strings/StringListUtils.java +++ b/src/fr/devinsy/util/strings/StringListUtils.java @@ -495,6 +495,72 @@ public class StringListUtils return result; } + /** + * + * @param source + * @return + */ + public static String toStringSeparatedBy(final Collection source, final String separator) + { + String result; + + if (source == null) + { + result = null; + } + else + { + result = new StringList(source).toStringSeparatedBy(separator); + } + + // + return result; + } + + /** + * + * @param strings + * @return + */ + public static String toStringSeparatedBy(final String[] source, final String separator) + { + String result; + + if (source == null) + { + result = null; + } + else + { + result = new StringList(source).toStringSeparatedBy(separator); + } + + // + return result; + } + + /** + * + * @param strings + * @return + */ + public static String toStringSeparatedBy(final StringList source, final String separator) + { + String result; + + if (source == null) + { + result = null; + } + else + { + result = source.toStringSeparatedBy(separator); + } + + // + return result; + } + /** * * @param strings