Package eu.c6.gibraltar.api.common
Class StringUtil
java.lang.Object
eu.c6.gibraltar.api.common.StringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNullOrEmpty(String str) Check if a string is null or empty.static StringreplaceAll(String data, String find, String replace) Replace into the stringdataeach occurence offindwithreplacevalue.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
isNullOrEmpty
Check if a string is null or empty.- Parameters:
str- String to check.- Returns:
trueif the string is null or empty.
-
replaceAll
Replace into the stringdataeach occurence offindwithreplacevalue.- Parameters:
data- String to analyze.find- String to find.replace- String to reaplace each occurrence found offind.- Returns:
- Sting
dataprocessed.
-