类 TemplateUtils
java.lang.Object
com.alibaba.nacos.client.utils.TemplateUtils
Template Utils.
- 作者:
- Nacos
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringstringBlankAndThenExecute(String source, Callable<String> callable) Execute if string blank.static StringstringEmptyAndThenExecute(String source, Callable<String> callable) Execute if string empty.static voidstringNotEmptyAndThenExecute(String source, Runnable runnable) Execute if string not empty.
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
构造器详细资料
-
TemplateUtils
public TemplateUtils()
-
-
方法详细资料
-
stringNotEmptyAndThenExecute
Execute if string not empty.- 参数:
source- sourcerunnable- execute runnable
-
stringEmptyAndThenExecute
Execute if string empty.- 参数:
source- empty sourcecallable- execute callable- 返回:
- result
-
stringBlankAndThenExecute
Execute if string blank.- 参数:
source- empty sourcecallable- execute callable- 返回:
- result
-