Package rife.bld.extension.tools
Class TextTools
java.lang.Object
rife.bld.extension.tools.TextTools
Text Tools.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBlank(CharSequence str) Checks if a character sequence isnull, empty, or contains only whitespace characters.static booleanisBlank(CharSequence... strings) Checks if all character sequences arenull, empty, or contain only whitespace characters.static booleanChecks if all string objects arenull, empty, or contain only whitespace characters.static booleanisEmpty(CharSequence str) Checks if a character sequence isnullor empty.static booleanisEmpty(CharSequence... strings) Checks if all character sequences arenullor empty.static booleanChecks if all string objects arenullor their string representations are empty.static booleanisNotBlank(CharSequence str) Checks if a character sequence is notnull, not empty, and not whitespace-only.static booleanisNotBlank(CharSequence... strings) Checks if all character sequences are notnull, not empty, and not whitespace-only.static booleanisNotBlank(Object... strings) Checks if all string objects are notnull, not empty, and not whitespace-only.static booleanisNotEmpty(CharSequence str) Checks if a character sequence is notnulland not empty.static booleanisNotEmpty(CharSequence... strings) Checks if all character sequences are notnulland not empty.static booleanisNotEmpty(Object... strings) Checks if all string objects are notnulland their string representations are not empty.
-
Method Details
-
isBlank
Checks if a character sequence isnull, empty, or contains only whitespace characters.- Parameters:
str- The character sequence to check- Returns:
trueif the character sequence isnull, empty, or whitespace-only;falseotherwise.- Since:
- 1.0
-
isBlank
Checks if all character sequences arenull, empty, or contain only whitespace characters.- Parameters:
strings- The character sequences to check- Returns:
trueif all character sequences arenull, empty, or whitespace-only;falseotherwise- Since:
- 1.0
-
isBlank
Checks if all string objects arenull, empty, or contain only whitespace characters.If an object is not
null, it will be converted to its string representation for the check.- Parameters:
strings- The string objects to check- Returns:
trueif all string objects arenull, their string representations are empty, or their string representations are whitespace-only;falseotherwise- Since:
- 1.0
-
isEmpty
Checks if all string objects arenullor their string representations are empty.- Parameters:
strings- The string objects to check- Returns:
trueif all objects arenullor their string representations are empty;falseotherwise- Since:
- 1.0
-
isEmpty
Checks if a character sequence isnullor empty.- Parameters:
str- The character sequence to check- Returns:
trueif the character sequence isnullor empty;falseotherwise- Since:
- 1.0
-
isEmpty
Checks if all character sequences arenullor empty.- Parameters:
strings- The character sequences to check- Returns:
trueif all character sequences arenullor empty;falseotherwise- Since:
- 1.0
-
isNotBlank
Checks if all character sequences are notnull, not empty, and not whitespace-only.- Parameters:
strings- The character sequences to check- Returns:
trueif all character sequences are notnull, not empty, and not whitespace-only;falseotherwise- Since:
- 1.0
-
isNotBlank
Checks if all string objects are notnull, not empty, and not whitespace-only.If an object is not
null, it will be converted to its string representation for the check.- Parameters:
strings- The string objects to check- Returns:
trueif all objects are notnull, their string representations are not empty, and their string representations are not whitespace-only;falseotherwise- Since:
- 1.0
-
isNotBlank
Checks if a character sequence is notnull, not empty, and not whitespace-only.- Parameters:
str- The character sequence to check- Returns:
trueif the character sequence is notnull, not empty, and not whitespace-only;falseotherwise- Since:
- 1.0
-
isNotEmpty
Checks if all character sequences are notnulland not empty.- Parameters:
strings- The character sequences to check- Returns:
trueif all character sequences are notnulland not empty;falseotherwise- Since:
- 1.0
-
isNotEmpty
Checks if a character sequence is notnulland not empty.- Parameters:
str- The character sequence to check- Returns:
trueif the character sequence is notnulland not empty;falseotherwise- Since:
- 1.0
-
isNotEmpty
Checks if all string objects are notnulland their string representations are not empty.- Parameters:
strings- The string objects to check- Returns:
trueif all string objects are notnulland their string representations are not empty;falseotherwise- Since:
- 1.0
-