Package net.hironico.common.utils
Class StringUtils
java.lang.Object
net.hironico.common.utils.StringUtils
Utility class for String manipulation operations.
Provides helper methods for common string operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcountOccurences(String src, char theCar) Count the number of occurrences of a specific character in a string.static booleanCheck for "NULL" or "null" or null values of the given string.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
countOccurences
Count the number of occurrences of a specific character in a string.- Parameters:
src- the source string to search intheCar- the character to count- Returns:
- the number of occurrences of the character, or -1 if src is null
-
isNULL
Check for "NULL" or "null" or null values of the given string.- Parameters:
str- the String to test- Returns:
- true if considered NULL
-