类 EasyCodeUtils

java.lang.Object
com.easycode8.fastapi.core.util.EasyCodeUtils

public class EasyCodeUtils extends Object
  • 构造器详细资料

    • EasyCodeUtils

      public EasyCodeUtils()
  • 方法详细资料

    • 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"
    • toUnderscoreName

      public static String toUnderscoreName(String camelCaseName)
      驼峰转下划线 (暂不建议使用toUnderScoreCase)
      参数:
      camelCaseName -
      返回:
    • main

      public static void main(String[] args)