Java Utililty Methods Reflection Primitive

List of utility methods to do Reflection Primitive

Description

The list of methods to do Reflection Primitive are organized into topic(s).

Method

ClassgetWrapper(Class clazz)
get Wrapper
if (isPrimitive(clazz)) {
    return wrappers.get(clazz);
return clazz;
ClassgetWrapper(Class type)
get Wrapper
return primitiveWrappers.get(type);
ClassgetWrapper(final Class beanClass)
Get the wrapper class for this class if there is one
Class<?> wrapper = null;
if (beanClass != null) {
    if (isClassPrimitive(beanClass)) {
        wrapper = getPrimitiveToWrapper().get(beanClass);
    } else if (isClassArray(beanClass) && beanClass.getComponentType().isPrimitive()) {
        wrapper = getPrimitiveToWrapper().get(beanClass);
    } else {
        wrapper = beanClass;
...
ClassgetWrapperClass(Class clazz)
returns the Object Type class of a primitive class type.
if (clazz.isPrimitive())
    return map.get(clazz);
return clazz;
ClassgetWrapperClass(Class primitiveClass)
get Wrapper Class
return primitiveClasses.get(primitiveClass);
ClassgetWrapperClass(String className)
get Wrapper Class
return map.get(className);
ClassgetWrapperClassForPrimitive(Class primitiveClass)
get Wrapper Class For Primitive
return PRIMITIVE_TO_WRAPPERS_MAP.get(primitiveClass);
ClassgetWrapperClassIfPrimitive(final Class clazz)
get Wrapper Class If Primitive
if (PRIMITIVE_TO_WRAPPER_MAP.containsKey(clazz)) {
    return PRIMITIVE_TO_WRAPPER_MAP.get(clazz);
} else {
    return clazz;
booleanisAJavaPrimitiveArrayClass(final Class type)
is A Java Primitive Array Class
return getAllJavaPrimitiveArrayClasses().contains(type);
booleanisBoxed(Class boxedClass, Class primitiveClass)
is Boxed
Class<?> clazz = mapPrimitiveToBoxed.get(primitiveClass);
if (clazz == null) {
    return false;
return clazz.equals(boxedClass);