public final class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
capitalize(String string)
Returns a capitalized version of the given string.
|
static long |
getLongHashCode(String string)
Version of the usual String.hashCode() method that computes a long hash code instead of an int hash code, using the same algorithm as the
original method.
|
static boolean |
isEmpty(String string)
Checks if the given string is null or empty.
|
static boolean |
isNotEmpty(String string)
Checks if the given string is non-null and not empty.
|
static String[] |
split(String string,
char separatorChar)
Calls
return split(string, separatorChar, '\\'). |
static String[] |
split(String string,
char separatorChar,
char escapeChar)
Splits the given string at the given separator character.
|
public static String capitalize(String string)
string - the stringpublic static String[] split(String string, char separatorChar)
return split(string, separatorChar, '\\').string - the stringseparatorChar - the separator characterpublic static String[] split(String string, char separatorChar, char escapeChar)
string - the string to splitseparatorChar - the separator characterescapeChar - the escape characterpublic static long getLongHashCode(String string)
string - the stringpublic static boolean isEmpty(String string)
string - the stringpublic static boolean isNotEmpty(String string)
string - the string