Package ai.wanaku.cli.main.support
Class StringHelper
java.lang.Object
ai.wanaku.cli.main.support.StringHelper
Helper methods for working with Strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanAsserts whether the string is empty.static booleanisNotEmpty(String value) Asserts whether the string is not empty.
-
Method Details
-
isNotEmpty
Asserts whether the string is not empty.- Parameters:
value- the string to test- Returns:
trueifvalueis not null and not blank,falseotherwise.
-
isEmpty
Asserts whether the string is empty.- Parameters:
value- the string to test- Returns:
trueifvalueis null and blank,falseotherwise.
-