com.cloudera.lib.lang
Class StringUtils

java.lang.Object
  extended by com.cloudera.lib.lang.StringUtils

public abstract class StringUtils
extends Object

String related utilities.


Constructor Summary
StringUtils()
           
 
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
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

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.