Class StringUtil

java.lang.Object
cn.lm.mybatis.mapper.util.StringUtil

public class StringUtil extends Object
Created by liuzh_3nofxnp on 2015/8/26.
  • Field Details

  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • isEmpty

      public static boolean isEmpty(CharSequence str)
      Parameters:
      str -
      Returns:
    • isNotEmpty

      public static boolean isNotEmpty(CharSequence str)
      非空
      Parameters:
      str -
      Returns:
    • isNotBlank

      public static boolean isNotBlank(CharSequence cs)
      See Also:
    • isBlank

      public static boolean isBlank(CharSequence cs)
      判断字符串中是否全是空白字符
      Parameters:
      cs - 需要判断的字符串
      Returns:
      如果字符串序列是 null 或者全是空白,返回 true
    • checkValNull

      public static boolean checkValNull(Object object)
      判断对象是否为空
      Parameters:
      object - ignore
      Returns:
      ignore
    • checkValNotNull

      public static boolean checkValNotNull(Object object)
      判断对象是否不为空
      Parameters:
      object - ignore
      Returns:
      ignore
    • convertByStyle

      public static String convertByStyle(String str, Style style)
      根据指定的样式进行转换
      Parameters:
      str -
      style -
      Returns:
    • camelhumpToUnderline

      public static String camelhumpToUnderline(String str)
      将驼峰风格替换为下划线风格
    • underlineToCamelhump

      public static String underlineToCamelhump(String str)
      将下划线风格替换为驼峰风格
    • isUppercaseAlpha

      public static boolean isUppercaseAlpha(char c)
    • isLowercaseAlpha

      public static boolean isLowercaseAlpha(char c)
    • toUpperAscii

      public static char toUpperAscii(char c)
    • toLowerAscii

      public static char toLowerAscii(char c)