Package com.zfabrik.util
Class StringUtils
java.lang.Object
com.zfabrik.util.StringUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getString(ResourceBundle b, String key, Object... args)
Exception safe getString method for resource bundles.static boolean
isEmpty(CharSequence s)
static String
remove blanks and normalize to nullstatic boolean
notEmpty(CharSequence s)
splitString(String s)
static String
Trims if the argument is not null.static String
Trims tail of argument if it is not null.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
isEmpty
-
notEmpty
-
splitString
-
trimAndNormalizeToNull
Trims if the argument is not null. returns null, if the argument is null or of zero length after trimming.- Parameters:
s
-- Returns:
-
trimTailAndNormalizeToNull
Trims tail of argument if it is not null. returns null, if the argument is null or of zero length after trimming.- Parameters:
s
-- Returns:
-
lowerCaseTrimIdentifierAndNormalizeToNull
remove blanks and normalize to null- Parameters:
lowerCase
-- Returns:
-
getString
Exception safe getString method for resource bundles. Catches any exception and if so returns the string key with leading and trailing ???
-