Java Utililty Methods BigDecimal Parse

List of utility methods to do BigDecimal Parse

Description

The list of methods to do BigDecimal Parse are organized into topic(s).

Method

booleanisBigDecimal(@Nonnull Class type)
is Big Decimal
return BigDecimal.class == type;
booleanisBigDecimal(final N number)
Check if the number is a BigDecimal
return isNumberType(number, BigDecimal.class);
booleanisBigDecimal(final Object value)
Returns true if the given object is a non-null instance of BigDecimal .
return isBigDecimal(value, false);
booleanisBigDecimal(Number n)
Finds out if n represents a BigInteger
if (n instanceof BigDecimal) {
    return true;
try {
    new BigDecimal(String.valueOf(n));
    return true;
} catch (NumberFormatException e) {
    return false;
...
booleanisBigDecimal(Object obj)
is Big Decimal
if (obj instanceof BigDecimal) {
    return true;
return false;
booleanisBigDecimal(Object v)
is Big Decimal
return v instanceof BigDecimal;
booleanisBigDecimal(String str)
is Big Decimal
try {
    new BigDecimal(str);
    return true;
} catch (Exception e) {
    return false;
booleanisBigDecimal(String value)
<p>Checks if the value can safely be converted to a BigDecimal.

return (formatBigDecimal(value) != null);
booleanisBigDecimalAssignable(String javaDataType)
is Big Decimal Assignable
try {
    return BigDecimal.class.isAssignableFrom(Class.forName(javaDataType));
} catch (ClassNotFoundException e) {
    throw new IllegalArgumentException(e);
booleanisBigDecimalType(Class type)
Checks if the type is a BigDecimal type.
return type != null && BigDecimal.class.isAssignableFrom(type);