Package net.guizhanss.guizhanlib.utils
Class StringUtil
java.lang.Object
net.guizhanss.guizhanlib.utils.StringUtil
Utility methods about
String.- Author:
- ybw0014
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String str) Capitalize each word in theString.static Stringdehumanize(String str) Make string to uppercase format and replace hyphen and spaces to underscore.static StringMake the string readable.static booleanCheck if givenStringis blank.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
humanize
Make the string readable. -
dehumanize
Make string to uppercase format and replace hyphen and spaces to underscore.- Parameters:
str- The originalString.- Returns:
- Readable string.
-
capitalize
Capitalize each word in theString. DOES NOT lower case other letters in a word. -
isBlank
Check if givenStringis blank.
-