gravitino.utils.string_utils.StringUtils¶
- class gravitino.utils.string_utils.StringUtils¶
Bases:
object- __init__()¶
Methods
__init__()is_blank(s)Checks if a string is blank (null, empty, or only whitespace).
is_not_blank(s)Checks if a string is not blank (not null, not empty, and not only whitespace).
- classmethod is_blank(s: str) bool¶
Checks if a string is blank (null, empty, or only whitespace).
- Args:
s: The string to check.
- Returns:
True if the string is blank, False otherwise.
- classmethod is_not_blank(s: str) bool¶
Checks if a string is not blank (not null, not empty, and not only whitespace).
- Args:
s (str): The string to check.
- Returns:
bool: True if the string is not blank, False otherwise.