类 TemplateUtils

java.lang.Object
com.alibaba.nacos.client.utils.TemplateUtils

public class TemplateUtils extends Object
Template Utils.
作者:
Nacos
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • 构造器详细资料

    • TemplateUtils

      public TemplateUtils()
  • 方法详细资料

    • stringNotEmptyAndThenExecute

      public static void stringNotEmptyAndThenExecute(String source, Runnable runnable)
      Execute if string not empty.
      参数:
      source - source
      runnable - execute runnable
    • stringEmptyAndThenExecute

      public static String stringEmptyAndThenExecute(String source, Callable<String> callable)
      Execute if string empty.
      参数:
      source - empty source
      callable - execute callable
      返回:
      result
    • stringBlankAndThenExecute

      public static String stringBlankAndThenExecute(String source, Callable<String> callable)
      Execute if string blank.
      参数:
      source - empty source
      callable - execute callable
      返回:
      result