Java Class Simple Name Get simpleName(String className)

Here you can find the source of simpleName(String className)

Description

simple Name

License

Apache License

Declaration

private static String simpleName(String className) 

Method Source Code

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

public class Main {
    private static String simpleName(String className) {
        String[] parts = className.split("\\.");
        if (parts.length == 0) {
            return null;
        }//from   w ww  .ja va2s.c  om

        return parts[parts.length - 1];
    }
}

Related

  1. simpleName(final Class className)
  2. simpleName(final String fqn)
  3. simpleName(final String fullyQualifiedClassName)
  4. simpleName(final String name)
  5. simpleName(Object obj)
  6. simpleName(String componentName)
  7. simpleName(String qualifiedClassName)
  8. simpleName(String qualifiedName)
  9. simpleName(String type)