Package net.paulem.arcana.utils
Class StringUtils
java.lang.Object
net.paulem.arcana.utils.StringUtils
Utility methods for working with strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcapitalizeWords(String input) Capitalizes the first letter of every whitespace-separated word in the given string and lowercases the rest of each word.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
capitalizeWords
Capitalizes the first letter of every whitespace-separated word in the given string and lowercases the rest of each word.- Parameters:
input- the string to capitalize, may benullor empty- Returns:
- the capitalized string, or
inputunchanged if it isnullor empty
-