private static class FastDatePrinter.TimeZoneNameRule extends Object implements FastDatePrinter.Rule
Inner class to output a time zone name.
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
mDaylight |
private Locale |
mLocale |
private String |
mStandard |
private int |
mStyle |
| 构造器和说明 |
|---|
TimeZoneNameRule(TimeZone timeZone,
Locale locale,
int style)
Constructs an instance of
TimeZoneNameRule with the specified properties. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendTo(Appendable buffer,
Calendar calendar)
Appends the value of the specified calendar to the output buffer based on the rule implementation.
|
int |
estimateLength()
Returns the estimated length of the result.
|
private final Locale mLocale
private final int mStyle
private final String mStandard
private final String mDaylight
public int estimateLength()
estimateLength 在接口中 FastDatePrinter.Rulepublic void appendTo(Appendable buffer, Calendar calendar) throws IOException
appendTo 在接口中 FastDatePrinter.Rulebuffer - the output buffercalendar - calendar to be appendedIOException - if an I/O error occursCopyright © 2020. All rights reserved.