Object StringToolkit

  • All Implemented Interfaces:

    
    public class StringToolkit
    
                        

    String toolkit 字符串工具类

    Author:

    Toutatis_Gc

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String concatString(String strArr, String separator) Concat string 合并字符串
      final static String lineWrap(String str, Integer length) Line wrap 字符串自动换行字符串每达到相应length参数则换行一次
      final static String lineWrap(String suffix, Integer appendTabCount, String str, Integer length) Line wrap 字符串自动换行字符串每达到相应length参数则换行一次
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • concatString

         final static String concatString(String strArr, String separator)

        Concat string 合并字符串

        Parameters:
        strArr - 多个字符串
        separator - 分隔符
        Returns:

        字符串连接

      • lineWrap

         final static String lineWrap(String str, Integer length)

        Line wrap 字符串自动换行

        字符串每达到相应length参数则换行一次

        Parameters:
        str - 字符串
        length - 换行长度
        Returns:

        换行字符串

      • lineWrap

         final static String lineWrap(String suffix, Integer appendTabCount, String str, Integer length)

        Line wrap 字符串自动换行

        字符串每达到相应length参数则换行一次

        Parameters:
        suffix - 自定义前缀
        appendTabCount - 追加制表符数量
        str - 字符串
        length - 换行长度
        Returns:

        换行字符串