private static class FastDatePrinter.TwoDigitNumberField extends java.lang.Object implements FastDatePrinter.NumberRule
Inner class to output a two digit number.
| Modifier and Type | Field and Description |
|---|---|
private int |
mField |
| Constructor and Description |
|---|
TwoDigitNumberField(int field)
Constructs an instance of
TwoDigitNumberField with the specified field. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(java.lang.Appendable 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.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.
|
TwoDigitNumberField(int field)
TwoDigitNumberField with the specified field.field - the fieldpublic int estimateLength()
estimateLength in interface FastDatePrinter.Rulepublic void appendTo(java.lang.Appendable buffer,
java.util.Calendar calendar)
throws java.io.IOException
appendTo in interface FastDatePrinter.Rulebuffer - the output buffercalendar - calendar to be appendedjava.io.IOException - if an I/O error occurspublic final void appendTo(java.lang.Appendable buffer,
int value)
throws java.io.IOException
appendTo in interface FastDatePrinter.NumberRulebuffer - the output buffervalue - the value to be appendedjava.io.IOException - if an I/O error occurs