类 StrUtils

java.lang.Object
cn.ezeyc.edpenc.util.StrUtils

public class StrUtils extends Object
作者:
wz
  • 构造器详细资料

    • StrUtils

      public StrUtils()
  • 方法详细资料

    • isEmpty

      public static boolean isEmpty(String str)
      判断字符串是否为空
      参数:
      str - 字符串
      返回:
      是否是空的
    • isEmpty

      public static boolean isEmpty(char[] str)
      判断字符串是否为空
      参数:
      str - 字符串
      返回:
      是否是空的
    • isNotEmpty

      public static boolean isNotEmpty(char[] str)
      判断字符串是否不为空
      参数:
      str - 字符串
      返回:
      是否不是空的
    • merger

      public static char[] merger(char[]... bts)
      合并byte[]
      参数:
      bts - 字节数组
      返回:
      合并后的字节
    • toChars

      public static char[] toChars(byte[] bytes)
      字节转char数组
      参数:
      bytes - 字节数组
      返回:
      chars
    • toBytes

      public static byte[] toBytes(char[] chars)
      字符数组转成字节数组
      参数:
      chars - 字符数组
      返回:
      字节数组
    • equal

      public static boolean equal(char[] char1, char[] char2)
      char数组比较
      参数:
      char1 - char1
      char2 - char2
      返回:
      是否相等
    • containsArray

      public static boolean containsArray(String str, String[] array)
      字符串是否包含数组中的任1元素
      参数:
      array - 数组
      str - 包含的字串
      返回:
      是否
    • insertStringArray

      public static String insertStringArray(String[] arrayStr, String insertStr, String pos)
      在字符串的某个位置插入字符串
      参数:
      arrayStr - 字符串数组
      insertStr - 要插入的字串
      pos - 位置开始标识
      返回:
      插入后的字串
    • findClass

      public static boolean findClass(List<String> matches, String className)