Here you can find the source of getClassName(String typeName)
public static String getClassName(String typeName)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; public class Main { private static final Map<String, Class<?>> primitiveWrappers = new HashMap<>(); /**/* www .j a va2 s . c o m*/ * Return the wrapper class name if typeName is a primitive java type, or typeName otherwise. */ public static String getClassName(String typeName) { final Class<?> wrapper = getPrimitiveWrapper(typeName); return wrapper != null ? wrapper.getSimpleName() : typeName; } public static Class<?> getPrimitiveWrapper(String primitiveTypeName) { return primitiveWrappers.get(primitiveTypeName); } }