Java Class Simple Name Get simpleClassNameFrom(String fqClassName)

Here you can find the source of simpleClassNameFrom(String fqClassName)

Description

simple Class Name From

License

Apache License

Declaration

public static String simpleClassNameFrom(String fqClassName) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String simpleClassNameFrom(String fqClassName) {
        if (fqClassName == null) {
            return null;
        } else if (fqClassName.isEmpty()) {
            return "";
        }/* ww  w  .j a  v a2 s  . c  o m*/

        final String[] split = fqClassName.split("\\.");
        return split[split.length - 1];
    }
}

Related

  1. simpleClassName(Object o)
  2. simpleClassName(Object object)
  3. simpleClassName(String fqn)
  4. simpleClassNameAndHashCodeString(Object object)
  5. simpleClassNameAndHashCodeString(Object object)
  6. simpleClassNameOf(Class c)
  7. simpleName(Class clazz)
  8. simpleName(Class c)
  9. simpleName(final Class className)