List of utility methods to do BigDecimal Parse
boolean | isBigDecimal(@Nonnull Class> type) is Big Decimal return BigDecimal.class == type; |
boolean | isBigDecimal(final N number) Check if the number is a BigDecimal return isNumberType(number, BigDecimal.class); |
boolean | isBigDecimal(final Object value) Returns true if the given object is a non-null instance of BigDecimal . return isBigDecimal(value, false);
|
boolean | isBigDecimal(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; ... |
boolean | isBigDecimal(Object obj) is Big Decimal if (obj instanceof BigDecimal) { return true; return false; |
boolean | isBigDecimal(Object v) is Big Decimal return v instanceof BigDecimal; |
boolean | isBigDecimal(String str) is Big Decimal try { new BigDecimal(str); return true; } catch (Exception e) { return false; |
boolean | isBigDecimal(String value) <p>Checks if the value can safely be converted to a BigDecimal. return (formatBigDecimal(value) != null);
|
boolean | isBigDecimalAssignable(String javaDataType) is Big Decimal Assignable try { return BigDecimal.class.isAssignableFrom(Class.forName(javaDataType)); } catch (ClassNotFoundException e) { throw new IllegalArgumentException(e); |
boolean | isBigDecimalType(Class> type) Checks if the type is a BigDecimal type. return type != null && BigDecimal.class.isAssignableFrom(type); |