Interface FastDatePrinter.Rule
- All Known Subinterfaces:
FastDatePrinter.NumberRule
- All Known Implementing Classes:
FastDatePrinter.CharacterLiteral, FastDatePrinter.DayInWeekField, FastDatePrinter.Iso8601_Rule, FastDatePrinter.PaddedNumberField, FastDatePrinter.StringLiteral, FastDatePrinter.TextField, FastDatePrinter.TimeZoneNameRule, FastDatePrinter.TimeZoneNumberRule, FastDatePrinter.TwelveHourField, FastDatePrinter.TwentyFourHourField, FastDatePrinter.TwoDigitMonthField, FastDatePrinter.TwoDigitNumberField, FastDatePrinter.TwoDigitYearField, FastDatePrinter.UnpaddedMonthField, FastDatePrinter.UnpaddedNumberField, FastDatePrinter.WeekYear
- Enclosing class:
FastDatePrinter
private static interface FastDatePrinter.Rule
Inner class defining a rule.
- Since:
- Apache Commons Lang 3.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Appendable buf, Calendar calendar) Appends the value of the specified calendar to the output buffer based on the rule implementation.intReturns the estimated length of the result.
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
estimateLength
int estimateLength()Returns the estimated length 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:
buf- the output buffercalendar- calendar to be appended- Throws:
IOException- if an I/O error occurs
-