类 DsStrUtils

java.lang.Object
com.baomidou.dynamic.datasource.toolkit.DsStrUtils

public abstract class DsStrUtils extends Object
常见字符串工具类
作者:
TaoYu
  • 构造器详细资料

    • DsStrUtils

      public DsStrUtils()
  • 方法详细资料

    • isEmpty

      public static boolean isEmpty(String str)
    • hasLength

      public static boolean hasLength(CharSequence str)
      判断字符串是否为空
      参数:
      str - 字符串
      返回:
      true: null or "" or " " false: "a"
    • hasLength

      public static boolean hasLength(String str)
      判断字符串是否为空
      参数:
      str - 字符串
      返回:
      true: null or "" or " " false: "a"
    • hasText

      public static boolean hasText(CharSequence str)
      判断字符串是否有内容
      参数:
      str - 字符串
      返回:
      true: null or "" or " " false: "a"