Here you can find the source of getPrimitiveTypeByWrapper(Class> clazz)
public static Class<?> getPrimitiveTypeByWrapper(Class<?> clazz)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**//from w ww . j a va 2s . co m * Map with primitive wrapper type as key and corresponding primitive type * as value, for example: Integer.class -> int.class. */ private static final Map<Class<?>, Class<?>> wrapperPrimitiveTypeMap = new HashMap<Class<?>, Class<?>>(8); public static Class<?> getPrimitiveTypeByWrapper(Class<?> clazz) { return wrapperPrimitiveTypeMap.get(clazz); } }