private static class FastDateFormat.TextField extends java.lang.Object implements FastDateFormat.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.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.
|
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 FastDateFormat.Rule
public void appendTo(java.lang.StringBuffer buffer, java.util.Calendar calendar)
appendTo
in interface FastDateFormat.Rule
buffer
- the output buffercalendar
- calendar to be appended