/** * Convenience method to return a Collection as a delimited (e.g. CSV) * String. E.g. useful for <code>toString()</code> implementations. * @param coll the Collection to display * @param delim the delimiter to use (probably a ",") * @return the delimited String * * Borrowed from Spring, under the ASL2.0 license. */ public static String collectionToDelimitedString(Collection coll, String delim) { return collectionToDelimitedString(coll, delim, "", ""); }
return prefix + collectionToDelimitedString(pathElements, FOLDER_SEPARATOR);