Package com.echothree.util.common.string
Class StringUtils
java.lang.Object
com.echothree.util.common.string.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptioncleanString
(String str, boolean includeDigits, boolean includeLetters, boolean includeSpaces) codePoints
(String str) convertToHtml
(String value, String mimeTypeName) int
countSpaces
(String str) getIndent
(int indentAmount, int indentCount) static StringUtils
boolean
isAllLowerCase
(String str) boolean
isAllSameCase
(String str) boolean
isAllUpperCase
(String str) normalizeCase
(String str) int
nullSafeCompareTo
(String s1, String s2) null-safe String comparison.repeatingStringFromChar
(char val, int length) trimToNull
(String string) Take a string and trim all leading and trailing spaces from it.
-
Method Details
-
getInstance
-
toAscii7
-
getIndent
-
trimToNull
Take a string and trim all leading and trailing spaces from it. If the resulting length is zero, return null. -
nullSafeCompareTo
null-safe String comparison. -
left
-
right
-
cleanStringToName
-
countSpaces
-
getSpace
-
cleanString
public String cleanString(String str, boolean includeDigits, boolean includeLetters, boolean includeSpaces) -
cleanStringToLettersOrDigits
-
upperCaseFirstCharacter
-
lowerCaseFirstCharacter
-
normalizeCase
-
codePoints
-
convertToHtml
-
mask
-
mask
-
repeatingStringFromChar
-
isAllUpperCase
-
isAllLowerCase
-
isAllSameCase
-