Here you can find the source of getPrimitiveSize(Class> type)
static int getPrimitiveSize(Class<?> type)
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; public class Main { private static final Map<Class<?>, Integer> primarySizeMapper = new HashMap<Class<?>, Integer>(); static int getPrimitiveSize(Class<?> type) { return primarySizeMapper.get(type); }/*from w w w.j a v a 2 s .co m*/ }