Java Class Name Convert To classNameToResourceKey(String name)

Here you can find the source of classNameToResourceKey(String name)

Description

class Name To Resource Key

License

Open Source License

Declaration

public static String classNameToResourceKey(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String classNameToResourceKey(String name) {
        return name.replaceAll("\\B([A-Z])", "_$1").toLowerCase() + "s";
    }/*from   w  w  w.  ja v  a2 s  .c  o  m*/
}

Related

  1. classNameToPackageName(String fqn)
  2. classNameToPath(final String className)
  3. classNameToPath(String className)
  4. classNameToResource(String className)
  5. classNameToResource(String className)
  6. classNameToResourceName(String clsName)
  7. classNameToWrapperName(String ClassName)