Consider BigInteger and BigDecimal as primitives. @param type the class type to inspect @return true if class isPrimitive, or BigInteger, or BigDecimal
(Class<?> type)
| 693 | * @param type the class type to inspect |
| 694 | * @return true if class isPrimitive, or BigInteger, or BigDecimal */ |
| 695 | public static boolean isPrimitive(Class<?> type) { |
| 696 | return type.isPrimitive() || type == BigInteger.class || type == BigDecimal.class; |
| 697 | } |
| 698 | |
| 699 | /** Consider Character as a number type. |
| 700 | * @param value the value to inspect. |
no outgoing calls
no test coverage detected