Package org.apache.commons.lang.time
Interface FastDateFormat.Rule
- All Known Subinterfaces:
FastDateFormat.NumberRule
- All Known Implementing Classes:
FastDateFormat.CharacterLiteral,FastDateFormat.PaddedNumberField,FastDateFormat.StringLiteral,FastDateFormat.TextField,FastDateFormat.TimeZoneNameRule,FastDateFormat.TimeZoneNumberRule,FastDateFormat.TwelveHourField,FastDateFormat.TwentyFourHourField,FastDateFormat.TwoDigitMonthField,FastDateFormat.TwoDigitNumberField,FastDateFormat.TwoDigitYearField,FastDateFormat.UnpaddedMonthField,FastDateFormat.UnpaddedNumberField
- Enclosing class:
- FastDateFormat
private static interface FastDateFormat.Rule
Inner class defining a rule.
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(StringBuffer buffer, Calendar calendar) Appends the value of the specified calendar to the output buffer based on the rule implementation.intReturns the estimated lentgh of the result.
-
Method Details
-
estimateLength
int estimateLength()Returns the estimated lentgh of the result.- Returns:
- the estimated length
-
appendTo
Appends the value of the specified calendar to the output buffer based on the rule implementation.- Parameters:
buffer- the output buffercalendar- calendar to be appended
-