Java BigDecimal Parse isBigDecimalType(Class type)

Here you can find the source of isBigDecimalType(Class type)

Description

Checks if the type is a BigDecimal type.

License

Open Source License

Parameter

Parameter Description
type the data type.

Return

true if it is numeric type including all subclasses of BigDecimal.

Declaration

public static boolean isBigDecimalType(Class<?> type) 

Method Source Code

//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);
    }
}

Related

  1. isBigDecimal(Object obj)
  2. isBigDecimal(Object v)
  3. isBigDecimal(String str)
  4. isBigDecimal(String value)
  5. isBigDecimalAssignable(String javaDataType)
  6. isInteger(BigDecimal decimal)
  7. isInteger(BigDecimal inValue)
  8. isIntegerBigDecimal(BigDecimal bd)
  9. isIntegerValue(final BigDecimal bd)