com.jidesoft.utils
Class StringUtils
java.lang.Object
com.jidesoft.utils.StringUtils
public class StringUtils
- extends java.lang.Object
Method Summary |
static java.lang.String |
stringList(java.util.List<?> objects)
|
static java.lang.String |
stringList(java.lang.Object[] objects)
|
static java.lang.String |
stringList(java.lang.String prefix,
java.lang.String suffix,
java.lang.String separator,
java.lang.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 java.lang.String |
toCamelCase(java.lang.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 |
StringUtils
public StringUtils()
toCamelCase
public static java.lang.String toCamelCase(java.lang.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
-
- Returns:
- a string
stringList
public static java.lang.String stringList(java.lang.String prefix,
java.lang.String suffix,
java.lang.String separator,
java.lang.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
- suffix
- separator
- objects
-
- Returns:
stringList
public static java.lang.String stringList(java.lang.Object[] objects)
stringList
public static java.lang.String stringList(java.util.List<?> objects)