return ObjectHelper.isNotEmpty(pattern)
? new LongPatternFormat(pattern, getLocale(locale))
: new LongFormat();
} else if (clazz == float.class || clazz == Float.class) {
return ObjectHelper.isNotEmpty(pattern)
? new FloatPatternFormat(pattern, getLocale(locale))
: new FloatFormat(impliedDecimalSeparator, precision, getLocale(locale));
} else if (clazz == double.class || clazz == Double.class) {
return ObjectHelper.isNotEmpty(pattern)
? new DoublePatternFormat(pattern, getLocale(locale))
: new DoubleFormat(impliedDecimalSeparator, precision, getLocale(locale));