类 StringUtil

java.lang.Object
com.jeeplus.devtools.util.StringUtil

public class StringUtil extends Object
字符串工具类, 继承org.apache.commons.lang3.StringUtils类
版本:
2021-05-22
作者:
jeeplus
  • 构造器详细资料

    • StringUtil

      public StringUtil()
  • 方法详细资料

    • abbr2

      public static String abbr2(String param, int length)
    • getRemoteAddr

      public static String getRemoteAddr(jakarta.servlet.http.HttpServletRequest request)
      获得用户远程地址
    • toCamelCase

      public static String toCamelCase(String s)
      驼峰命名法工具
      返回:
      toCamelCase(" hello_world ") == "helloWorld" toCapitalizeCamelCase("hello_world") == "HelloWorld" toUnderScoreCase("helloWorld") = "hello_world"
    • toCapitalizeCamelCase

      public static String toCapitalizeCamelCase(String s)
      驼峰命名法工具
      返回:
      toCamelCase(" hello_world ") == "helloWorld" toCapitalizeCamelCase("hello_world") == "HelloWorld" toUnderScoreCase("helloWorld") = "hello_world"
    • toUnderScoreCase

      public static String toUnderScoreCase(String s)
      驼峰命名法工具
      返回:
      toCamelCase(" hello_world ") == "helloWorld" toCapitalizeCamelCase("hello_world") == "HelloWorld" toUnderScoreCase("helloWorld") = "hello_world"