Here you can find the source of getPrimitiveClass(String name)
Parameter | Description |
---|---|
name | the type name |
public static Class getPrimitiveClass(String name)
//package com.java2s; import java.util.Map; public class Main { private static Map primitiveClasses; /**/* w w w .j a va 2 s .c om*/ * Returns the primitive class object that matches the specified type name.<br> * Returns null if the name does not match a primitive type. * * @param name the type name * @return the primimitive class object or null */ public static Class getPrimitiveClass(String name) { return (Class) primitiveClasses.get(name); } }