private static class FastDateFormat.CharacterLiteral extends java.lang.Object implements FastDateFormat.Rule
Inner class to output a constant single character.
| Modifier and Type | Field and Description |
|---|---|
private char |
mValue |
| Constructor and Description |
|---|
CharacterLiteral(char value)
Constructs a new instance of
CharacterLiteral
to hold the specified value. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(java.lang.StringBuffer buffer,
java.util.Calendar calendar)
Appends the value of the specified calendar to the output buffer based on the rule implementation.
|
int |
estimateLength()
Returns the estimated lentgh of the result.
|
CharacterLiteral(char value)
CharacterLiteral
to hold the specified value.value - the character literalpublic int estimateLength()
estimateLength in interface FastDateFormat.Rulepublic void appendTo(java.lang.StringBuffer buffer,
java.util.Calendar calendar)
appendTo in interface FastDateFormat.Rulebuffer - the output buffercalendar - calendar to be appended