Here you can find the source of isBigDecimalType(Class> type)
Parameter | Description |
---|---|
type | the data type. |
public static boolean isBigDecimalType(Class<?> type)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { /**/* ww w . j av a 2s .c o m*/ * Checks if the type is a BigDecimal type. * * @param type the data type. * @return true if it is numeric type including all subclasses of BigDecimal. */ public static boolean isBigDecimalType(Class<?> type) { return type != null && BigDecimal.class.isAssignableFrom(type); } }