| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY |
static String |
SPACE |
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
firstCharCap(String s)
Changes the first char of string capital and others to lower
|
static boolean |
isNullOrEmpty(String s) |
static String |
removeLast(String s,
String subStr)
removes last occurrence of String subStr in String s
|
static String |
removeLastChar(String s) |
static StringBuilder |
removeLastChar(StringBuilder sb) |
static String |
removeSpaces(String s)
removes spaces from the supplied string.
|
static boolean |
safeEquals(String s1,
String s2) |
static boolean |
safeEquals(String s1,
String s2,
boolean caseSensitive) |
static List<String> |
safeSplit(String s,
String separator) |
static String |
safeToString(Object o) |
static String |
safeTrim(String s) |
static String |
toLower(String s) |
static String |
toUpper(String s) |
public static final String EMPTY
public static final String SPACE
public static final StringBuilder removeLastChar(StringBuilder sb)
public static final boolean isNullOrEmpty(String s)
public static final String removeSpaces(String s)
s - stringpublic static final String removeLast(String s, String subStr)
s - original stringsubStr - string to be removedpublic static final String firstCharCap(String s)
s - stringCopyright © 2019. All rights reserved.