Interface FastDatePrinter.Rule
- All Known Subinterfaces:
FastDatePrinter.NumberRule
- Enclosing class:
FastDatePrinter
public static interface FastDatePrinter.Rule
规则
-
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.
-
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
-