类 TemplateUtils


  • public class TemplateUtils
    extends java.lang.Object
    Template Utils.
    作者:
    pbting
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.lang.String stringBlankAndThenExecute​(java.lang.String source, java.util.concurrent.Callable<java.lang.String> callable)
      Execute if string blank.
      static java.lang.String stringEmptyAndThenExecute​(java.lang.String source, java.util.concurrent.Callable<java.lang.String> callable)
      Execute if string empty.
      static void stringNotEmptyAndThenExecute​(java.lang.String source, java.lang.Runnable runnable)
      Execute if string not empty.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • TemplateUtils

        public TemplateUtils()
    • 方法详细资料

      • stringNotEmptyAndThenExecute

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

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

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