Java Reflection Primitive getPrimitiveSize(Class type)

Here you can find the source of getPrimitiveSize(Class type)

Description

get Primitive Size

License

Apache License

Declaration

static int getPrimitiveSize(Class<?> type) 

Method Source Code

//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*/
}

Related

  1. getPrimitiveClass(String primitiveClassName)
  2. getPrimitiveClass(String primitiveName)
  3. getPrimitiveClassIfWrapper(Class clazz)
  4. getPrimitiveDefault(Class primitiveClazz)
  5. getPrimitivePromotionCost(final Class srcClass, final Class destClass)
  6. getPrimitiveType(Class clazz)
  7. getPrimitiveType(String javaClassName)
  8. getPrimitiveWrapper(Class primitiveType)
  9. getRank(Class aNumberClass)