private static class FastDateFormat.TwelveHourField extends java.lang.Object implements FastDateFormat.NumberRule
Inner class to output the twelve hour field.
| Modifier and Type | Field and Description |
|---|---|
private FastDateFormat.NumberRule |
mRule |
| Constructor and Description |
|---|
TwelveHourField(FastDateFormat.NumberRule rule)
Constructs an instance of
TwelveHourField with the specified
NumberRule. |
| 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.
|
void |
appendTo(java.lang.StringBuffer buffer,
int value)
Appends the specified value to the output buffer based on the rule implementation.
|
int |
estimateLength()
Returns the estimated lentgh of the result.
|
private final FastDateFormat.NumberRule mRule
TwelveHourField(FastDateFormat.NumberRule rule)
TwelveHourField with the specified
NumberRule.rule - the rulepublic 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 appendedpublic void appendTo(java.lang.StringBuffer buffer,
int value)
appendTo in interface FastDateFormat.NumberRulebuffer - the output buffervalue - the value to be appended