List of utility methods to do Reflection Primitive
boolean | isExtPrimitive(Class> clazz) Class.isPrimitive only works for the built-in Java types (eg. return ucToLcTypeMap.containsKey(clazz);
|
boolean | isNumber(Class type) is Number return typeMap.containsKey(type);
|
boolean | isNumber(Class type) is Number return Number.class.isAssignableFrom(type) || type.isPrimitive() && Number.class.isAssignableFrom(primitiveWrappers.get(type)); |
boolean | isNumber(Class> clazz) Indicate whether the clazz represents a number return Number.class.isAssignableFrom(clazz) || Number.class.isAssignableFrom(boxedEquivalent(clazz)); |
boolean | isNumeric(Class operandClass) Determine whether the operand of type operandClass can be a numeric operand if (operandClass == null || !operandClass.isPrimitive() || operandClass == boolean.class || operandClass == void.class) { if (primitiveLangClassMap.containsKey(operandClass)) { return true; return false; return true; ... |
boolean | isNumericPrimitive(Class> type) Test whether a given type is a numeric primitive type. return Arrays.asList(numericTypes).contains(type);
|
boolean | isNumericType(Class aNumberClass) Determines if the given class is numeric. return NUMBER_RANK_MAP.get(aNumberClass) != null;
|
boolean | isPrimitive(Class c) is Primitive return primitiveToWrapperMap.containsKey(c);
|
boolean | isPrimitive(Class clazz) is Primitive return wrappers.containsKey(clazz);
|
boolean | isPrimitiveClass(Class> clazz) Determines whether the given clazz is a primitive class. return primitiveToObjectClassMap.containsKey(clazz);
|