Here you can find the source of getPrimitiveClass(String primitiveClassName)
public static Class<?> getPrimitiveClass(String primitiveClassName)
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; public class Main { private static final Map<String, Class<?>> primitiveClasses = new HashMap<String, Class<?>>(); public static Class<?> getPrimitiveClass(String primitiveClassName) { return primitiveClasses.get(primitiveClassName); }//w ww . j ava 2s. co m }