Java Class Name Format classToString(Class clazz)

Here you can find the source of classToString(Class clazz)

Description

class To String

License

Open Source License

Declaration

public static String classToString(Class<?> clazz) 

Method Source Code

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

public class Main {
    public static String classToString(Class<?> clazz) {
        if (clazz.isArray())
            return classToString(clazz.getComponentType()) + "[]";
        if (clazz.isPrimitive())
            return clazz.toString();
        return clazz.getSimpleName();
    }//from  www .j  a  v a  2  s .c o m
}

Related

  1. classToResourceKeyPrefix(final Class clazz)
  2. classToResourceName(Class clazz)
  3. classToSignatureIdentifier(Class clazz)
  4. classToSlashed(String className)
  5. classToString(Class c)
  6. classToString(Class[] array, String separator, String defaultValue)
  7. classToString(Class[] cArr)
  8. classToString(int clasS)
  9. classToStringRepresentation(Class c)