private static class FastDatePrinter.CharacterLiteral extends Object implements FastDatePrinter.Rule
Inner class to output a constant single character.
| 限定符和类型 | 字段和说明 |
|---|---|
private char |
mValue |
| 构造器和说明 |
|---|
CharacterLiteral(char value)
Constructs a new instance of
CharacterLiteral to hold the specified value. |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
CharacterLiteral(char value)
CharacterLiteral to hold the specified value.value - the character literalpublic 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 occursCopyright © 2020. All rights reserved.