Class StringUtils
java.lang.Object
es.kukenan.smartfi.microservice.communication.utils.StringUtils
Custom String handling utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String text) Capitalize the given phrase.static StringConvert format UNICODE to GSM 7 to send sms notification by mailjet.static StringConverts all of the characters in thisStringto lower case using the rules of the default locale.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
capitalize
Capitalize the given phrase.- Parameters:
text- a phrase.- Returns:
- the same phrase after capitalizing all its words. If the input phrase is
nullthennullis returned.
-
lowerCase
Converts all of the characters in thisStringto lower case using the rules of the default locale.- Parameters:
text- text to transform to lowercase.- Returns:
- lowercase text, null if input was null.
-
convertFromUnicodeToGsm7
Convert format UNICODE to GSM 7 to send sms notification by mailjet.- Parameters:
text- Text to format.- Returns:
- String format.
-