com.cloudera.lib.lang
Class StringUtils
java.lang.Object
com.cloudera.lib.lang.StringUtils
public abstract class StringUtils
- extends Object
String related utilities.
Method Summary |
static String |
toString(Collection<?> collection,
String separator)
Flattens a collection elements to a string calling
toString() on each element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtils
public StringUtils()
toString
public static String toString(Collection<?> collection,
String separator)
- Flattens a collection elements to a string calling
toString()
on each element.
- Parameters:
collection
- collection elements to flatten.separator
- separator to use between elements.
- Returns:
- the flattened string representation of the collection.
Copyright © 2012 Cloudera. All Rights Reserved.