List of utility methods to do Reflection Primitive
Class | getWrapper(Class clazz) get Wrapper if (isPrimitive(clazz)) { return wrappers.get(clazz); return clazz; |
Class> | getWrapper(Class> type) get Wrapper return primitiveWrappers.get(type);
|
Class> | getWrapper(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; ... |
Class> | getWrapperClass(Class> clazz) returns the Object Type class of a primitive class type. if (clazz.isPrimitive()) return map.get(clazz); return clazz; |
Class> | getWrapperClass(Class> primitiveClass) get Wrapper Class return primitiveClasses.get(primitiveClass);
|
Class> | getWrapperClass(String className) get Wrapper Class return map.get(className);
|
Class | getWrapperClassForPrimitive(Class primitiveClass) get Wrapper Class For Primitive return PRIMITIVE_TO_WRAPPERS_MAP.get(primitiveClass);
|
Class> | getWrapperClassIfPrimitive(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; |
boolean | isAJavaPrimitiveArrayClass(final Class> type) is A Java Primitive Array Class return getAllJavaPrimitiveArrayClasses().contains(type);
|
boolean | isBoxed(Class extends Object> boxedClass, Class> primitiveClass) is Boxed Class<?> clazz = mapPrimitiveToBoxed.get(primitiveClass); if (clazz == null) { return false; return clazz.equals(boxedClass); |