public class TemplateUtils extends Object
| 构造器和说明 |
|---|
TemplateUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
stringBlankAndThenExecute(String source,
Callable<String> callable)
Execute if string blank.
|
static String |
stringEmptyAndThenExecute(String source,
Callable<String> callable)
Execute if string empty.
|
static void |
stringNotEmptyAndThenExecute(String source,
Runnable runnable)
Execute if string not empty.
|
public static void stringNotEmptyAndThenExecute(String source, Runnable runnable)
source - sourcerunnable - execute runnablepublic static String stringEmptyAndThenExecute(String source, Callable<String> callable)
source - empty sourcecallable - execute callableCopyright © 2018–2021 Alibaba Group. All rights reserved.