类 StringHelper
java.lang.Object
com.github.codeboyzhou.mcp.declarative.util.StringHelper
Helper class for string operations.
- 作者:
- codeboyzhou
-
字段概要
字段 -
方法概要
-
字段详细资料
-
方法详细资料
-
isBlank
Checks if the given string is blank.- 参数:
str- the string to check- 返回:
trueif the string is blank,falseotherwise
-
defaultIfBlank
Returns the default value if the given string is blank, otherwise returns the original string.- 参数:
str- the string to checkdefaultValue- the default value to return if the string is blank- 返回:
- the original string if it is not blank, otherwise the default value
-