Java BigDecimal Parse isBigDecimalAssignable(String javaDataType)

Here you can find the source of isBigDecimalAssignable(String javaDataType)

Description

is Big Decimal Assignable

License

Open Source License

Declaration

public static boolean isBigDecimalAssignable(String javaDataType) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {

    public static boolean isBigDecimalAssignable(String javaDataType) {

        try {//from  w  w  w.j  a  v  a2  s.c  o m
            return BigDecimal.class.isAssignableFrom(Class.forName(javaDataType));
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(e);
        }
    }
}

Related

  1. isBigDecimal(Number n)
  2. isBigDecimal(Object obj)
  3. isBigDecimal(Object v)
  4. isBigDecimal(String str)
  5. isBigDecimal(String value)
  6. isBigDecimalType(Class type)
  7. isInteger(BigDecimal decimal)
  8. isInteger(BigDecimal inValue)
  9. isIntegerBigDecimal(BigDecimal bd)