List of utility methods to do Reflection Primitive
boolean | isPrimitiveClass(Class> cls) is Primitive Class return getWrapperClass(cls) != null;
|
boolean | isPrimitiveClass(String className) Determine whether the class of the specified className is a primitive type class if (className != null && primitiveClassMap.containsKey(className)) { return true; } else { return false; |
boolean | isPrimitiveClass(String primitiveClassName) is Primitive Class return primitiveStringToClass.containsKey(primitiveClassName);
|
boolean | isPrimitiveClassName(String cls) is Primitive Class Name if (primitiveArrayMap.get(cls) != null) { return true; String prims[] = { "boolean", "char", "byte", "short", "int", "long", "double", "float" }; for (String s : prims) { if (s.equals(cls)) { return true; return false; |
boolean | isPrimitiveOrPrimitiveWrapper(final Class> type) is Primitive Or Primitive Wrapper return type.isPrimitive() || primitives.containsValue(type);
|
boolean | isPrimitiveOrWrapper(Class> klass) Determines if klass represents either a wrapper for a primitive type or a primitive type. return klass.isPrimitive() || isPrimitiveWrapper(klass);
|
boolean | isPrimitiveOrWrapper(Class> type) is Primitive Or Wrapper return isPrimitive(type) || isWrapper(type);
|
boolean | isPrimitiveOrWrapper(final Class> type) is Primitive Or Wrapper if (type == null) { return false; return type.isPrimitive() || isPrimitiveWrapper(type); |
boolean | isPrimitiveWrapper(Class clazz) is Primitive Wrapper return PRIMITIVES.containsKey(clazz);
|
boolean | isPrimitiveWrapper(Class> clazz) Check if the given class represents a primitive wrapper, i.e. if (clazz == null) { throw new IllegalArgumentException("Class must not be null"); return primitiveWrapperTypeMap.containsKey(clazz); |