public final class StringUtils extends Object
String
.
This class cannot be instantiated or subclassed by clients.
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String value)
Capitalizes a String changing the first letter to title case as per
Character.toTitleCase(char) . |
static boolean |
isEmpty(String value)
Determines whether the
String is null or empty. |
public static String capitalize(String value)
Capitalizes a String changing the first letter to title case as per Character.toTitleCase(char)
. No other letters are changed.
value
- the String to capitalize, may be null
null
if null String inputpublic static boolean isEmpty(String value)
String
is null or empty.value
- the String to verifytrue
if the String is null or empty, false
otherwise