? new DoublePatternFormat(pattern, getLocale(locale))
: new DoubleFormat(impliedDecimalSeparator, precision, getLocale(locale));
} else if (clazz == BigDecimal.class) {
return ObjectHelper.isNotEmpty(pattern)
? new BigDecimalPatternFormat(pattern, getLocale(locale), precision, rounding, decimalSeparator, groupingSeparator)
: new BigDecimalFormat(impliedDecimalSeparator, precision, getLocale(locale));
} else if (clazz == BigInteger.class) {
return new BigIntegerFormat();
} else if (clazz == String.class) {
return new StringFormat();
} else if (clazz == Date.class) {