JIDE 3.5.15

com.jidesoft.utils
Class StringUtils

java.lang.Object
  extended by com.jidesoft.utils.StringUtils

public class StringUtils
extends Object


Constructor Summary
StringUtils()
           
 
Method Summary
static String stringList(List<?> objects)
           
static String stringList(Object[] objects)
           
static String stringList(String prefix, String suffix, String separator, Object... objects)
          Constructs a list of items in a string form using a prefix and suffix to denote the start and end of the list and a separator string in between the items.
static String toCamelCase(String str)
          Converts the supplied string to CamelCase by converting the first character to upper case and the rest of the string to lower case.
 
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

toCamelCase

public static String toCamelCase(String str)
Converts the supplied string to CamelCase by converting the first character to upper case and the rest of the string to lower case.

Parameters:
str - the input string
Returns:
a string

stringList

public static String stringList(String prefix,
                                String suffix,
                                String separator,
                                Object... objects)
Constructs a list of items in a string form using a prefix and suffix to denote the start and end of the list and a separator string in between the items. For example, with a prefix of '(', a suffix of ')', a separator of ',' and a list ["a", "b", "c"] it would generate the string "(a,b,c)"

Parameters:
prefix - the prefix for the concatenated string.
suffix - the suffix for the concatenated string.
separator - the separator between the elements.
objects - the array of the elements.
Returns:
a concatenated string of the elements in the array.

stringList

public static String stringList(Object[] objects)

stringList

public static String stringList(List<?> objects)

JIDE 3.5.15