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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
estimateLength
int estimateLength()
Returns the estimated lentgh of the result.- Returns:
- the estimated length
-
appendTo
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.- Parameters:
buffer
- the output buffercalendar
- calendar to be appended
-
-