Package org.apache.commons.lang.time
Class FastDateFormat.TextField
- java.lang.Object
-
- org.apache.commons.lang.time.FastDateFormat.TextField
-
- All Implemented Interfaces:
FastDateFormat.Rule
- Enclosing class:
- FastDateFormat
private static class FastDateFormat.TextField extends java.lang.Object implements FastDateFormat.Rule
Inner class to output one of a set of values.
-
-
Constructor Summary
Constructors Constructor Description TextField(int field, java.lang.String[] values)Constructs an instance ofTextFieldwith the specified field and values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(java.lang.StringBuffer buffer, java.util.Calendar calendar)Appends the value of the specified calendar to the output buffer based on the rule implementation.intestimateLength()Returns the estimated lentgh of the result.
-
-
-
Method Detail
-
estimateLength
public int estimateLength()
Returns the estimated lentgh of the result.- Specified by:
estimateLengthin interfaceFastDateFormat.Rule- Returns:
- the estimated length
-
appendTo
public 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.- Specified by:
appendToin interfaceFastDateFormat.Rule- Parameters:
buffer- the output buffercalendar- calendar to be appended
-
-