Package org.aoju.bus.core.date.formatter
Class AbstractMotd
java.lang.Object
org.aoju.bus.core.date.formatter.AbstractMotd
- All Implemented Interfaces:
Serializable,DateMotd
- Direct Known Subclasses:
FastDateParser,FastDatePrinter
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMotd(String pattern, TimeZone timeZone, Locale locale) 构造,内部使用 -
Method Summary
-
Field Details
-
pattern
匹配规则 -
timeZone
时区 -
locale
语言环境
-
-
Constructor Details
-
AbstractMotd
构造,内部使用- Parameters:
pattern- 使用SimpleDateFormat相同的日期格式timeZone- 非空时区TimeZonelocale- 非空Locale日期地理位置
-
-
Method Details
-
getPattern
Description copied from interface:DateMotd获得日期格式化或者转换的格式- Specified by:
getPatternin interfaceDateMotd- Returns:
SimpleDateFormat兼容的格式
-
getTimeZone
Description copied from interface:DateMotd获得时区- Specified by:
getTimeZonein interfaceDateMotd- Returns:
TimeZone
-
getLocale
Description copied from interface:DateMotd获得 日期地理位置 -
equals
-
hashCode
public int hashCode()
-