| Constructor and Description |
|---|
FormatCache() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract F |
createInstance(String pattern,
TimeZone timeZone,
Locale locale)
创建格式化器
|
F |
getInstance()
使用默认的pattern、timezone和locale获得缓存中的实例
|
F |
getInstance(String pattern,
TimeZone timeZone,
Locale locale)
使用 pattern, time zone and locale 获得对应的 格式化器
|
public F getInstance()
public F getInstance(String pattern, TimeZone timeZone, Locale locale)
pattern - 非空日期格式,使用与 SimpleDateFormat相同格式timeZone - 时区,默认当前时区locale - 地区,默认使用当前地区IllegalArgumentException - pattern 无效或nullprotected abstract F createInstance(String pattern, TimeZone timeZone, Locale locale)
pattern - 非空日期格式,使用与 SimpleDateFormat相同格式timeZone - 时区,默认当前时区locale - 地区,默认使用当前地区IllegalArgumentException - pattern 无效或nullCopyright © 2020. All rights reserved.