private static class FastDatePrinter.WeekYear extends Object implements FastDatePrinter.NumberRule
Inner class to output the numeric day in week.
| 限定符和类型 | 字段和说明 |
|---|---|
private FastDatePrinter.NumberRule |
mRule |
| 构造器和说明 |
|---|
WeekYear(FastDatePrinter.NumberRule rule) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendTo(Appendable buffer,
Calendar calendar)
Appends the value of the specified calendar to the output buffer based on the rule implementation.
|
void |
appendTo(Appendable buffer,
int value)
Appends the specified value to the output buffer based on the rule implementation.
|
int |
estimateLength()
Returns the estimated length of the result.
|
private final FastDatePrinter.NumberRule mRule
WeekYear(FastDatePrinter.NumberRule rule)
public int estimateLength()
FastDatePrinter.RuleestimateLength 在接口中 FastDatePrinter.Rulepublic void appendTo(Appendable buffer, Calendar calendar) throws IOException
FastDatePrinter.RuleappendTo 在接口中 FastDatePrinter.Rulebuffer - the output buffercalendar - calendar to be appendedIOException - if an I/O error occurspublic void appendTo(Appendable buffer, int value) throws IOException
FastDatePrinter.NumberRuleappendTo 在接口中 FastDatePrinter.NumberRulebuffer - the output buffervalue - the value to be appendedIOException - if an I/O error occursCopyright © 2020. All rights reserved.