MCPcopy Index your code
hub / github.com/apache/tomcat / isNumberType

Method isNumberType

java/org/apache/el/lang/ELArithmetic.java:450–453  ·  view source on GitHub ↗

Check if the given class is a number type. @param type The class to check @return true if the class is a number type

(final Class<?> type)

Source from the content-addressed store, hash-verified

448 * @return true if the class is a number type
449 */
450 public static boolean isNumberType(final Class<?> type) {
451 return type == Long.TYPE || type == Double.TYPE || type == Byte.TYPE || type == Short.TYPE ||
452 type == Integer.TYPE || type == Float.TYPE || Number.class.isAssignableFrom(type);
453 }
454
455 /**
456 * Protected constructor for subclasses.

Callers 2

coerceToTypeMethod · 0.95
isNumberMethod · 0.95

Calls 1

isAssignableFromMethod · 0.45

Tested by

no test coverage detected