List of utility methods to do Reflection Primitive
String | getBENameByPrimitiveClassName(String implementClassName) Get the entity name of class return (String) primitiveBEMap.get(implementClassName);
|
Object | getDefaultPrimitiveValue(Class> clazz) <#if locale="en"> Get default value if the Class is primitive type. if (clazz == null || !clazz.isPrimitive()) { return null; return primitiveToDefaultValueMap.get(clazz); |
Object | getDefaultValue(Class> primitive) get Default Value return defaultPrimitiveValues.get(primitive);
|
Object | getDefaultValueForPrimitive(Class> type) get Default Value For Primitive return primitiveToDefault.get(type);
|
Object | getNullOrPrimitiveDefault(Class> to) get Null Or Primitive Default return primitiveDefaults.get(to);
|
Class> | getPrimitive(final String classname) Returns the primitive Class object if the specified class name represents a primitive type; otherwise, returns null
return TYPE_MAP.get(classname);
|
Class | getPrimitiveClass(Class wrapper) get Primitive Class if (wrapper == Integer.class) return int.class; else if (wrapper == Short.class) return short.class; else if (wrapper == Boolean.class) return boolean.class; else if (wrapper == Byte.class) return byte.class; ... |
Class> | getPrimitiveClass(Class> wrapperClazz) get Primitive Class if (isPrimitiveWrapperClass(wrapperClazz)) { return getPrimitiveClass(wrapperClasses.get(wrapperClazz.getName())); return null; |
Class | getPrimitiveClass(Class Return the primitive counterpart class for the given boxed type. return (Class<T>) primitiveCounterparts.get(boxedClass);
|
Class | getPrimitiveClass(String name) Returns the primitive class object that matches the specified type name. Returns null if the name does not match a primitive type. return (Class) primitiveClasses.get(name);
|