private static class FastDatePrinter.TextField extends java.lang.Object implements FastDatePrinter.Rule
Inner class to output one of a set of values.
Modifier and Type | Field and Description |
---|---|
private int |
mField |
private java.lang.String[] |
mValues |
Constructor and Description |
---|
TextField(int field,
java.lang.String[] values)
Constructs an instance of
TextField
with the specified field and values. |
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.
|
int |
estimateLength()
Returns the estimated length of the result.
|
TextField(int field, java.lang.String[] values)
TextField
with the specified field and values.field
- the fieldvalues
- the field valuespublic int estimateLength()
estimateLength
in interface FastDatePrinter.Rule
public void appendTo(java.lang.Appendable buffer, java.util.Calendar calendar) throws java.io.IOException
appendTo
in interface FastDatePrinter.Rule
buffer
- the output buffercalendar
- calendar to be appendedjava.io.IOException