Class StringUtils
java.lang.Object
com.broadleafcommerce.shipping.service.util.StringUtils
Utility class for String operations in Shipping Services.
- Author:
- Julia Lopez-Pozas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalizeFully
(String delimitedString) Capitalizes the first letter of each word in a string separated by a space.static String
capitalizeFully
(String delimitedString, String delimiter) Capitalizes the first letter of each word in a string separated by delimiters.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
capitalizeFully
Capitalizes the first letter of each word in a string separated by a space.- Parameters:
delimitedString
- The string with delimited words- Returns:
- The delimited string with each word's first letter capitalized
-
capitalizeFully
Capitalizes the first letter of each word in a string separated by delimiters.- Parameters:
delimitedString
- The string with delimited wordsdelimiter
- The delimiter to use when splitting the string- Returns:
- The delimited string with each word's first letter capitalized
-